.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 12% auto;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.phone-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #153693;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #1e7ae6;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    color: #153693;
    border: 1px solid #153693;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #f0f7ff;
}

.btn-secondary:disabled {
    color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    background-color: transparent;
}

.sms-code-container {
    margin: 20px 0;
}

.sms-input-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.sms-digit {
    width: 40px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.sms-digit:focus {
    border-color: #153693;
    box-shadow: 0 0 0 2px rgba(45, 140, 240, 0.2);
}

.timer-container {
    text-align: center;
    margin: 15px 0;
    color: #666;
    font-size: 14px;
}

.error-message {
    color: #f5222d;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}
