/* VoBot Auth Dialog Styles */
.auth-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.auth-dialog-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.auth-dialog-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.auth-dialog-header h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-dialog-header p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.auth-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.auth-close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.auth-step {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004494);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn-primary:disabled,
.btn-primary.disabled {
    background: #6c757d !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.6;
}

.btn-primary:disabled:hover,
.btn-primary.disabled:hover {
    background: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.auth-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.auth-loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.auth-loader-text {
    color: white;
    font-size: 1rem;
}

.auth-message {
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.auth-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.phone-input-group {
    display: flex;
    gap: 0.5rem;
}

.country-code {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 500;
    color: #495057;
    min-width: 70px;
    text-align: center;
}

.otp-input-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.otp-digit {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.otp-digit:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.auth-step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
    margin: 0 0.25rem;
    transition: all 0.2s ease;
}

.step-dot.active {
    background: #007bff;
}

.resend-timer {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.resend-link {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.resend-link:hover {
    text-decoration: underline;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    min-height: 78px;
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.recaptcha-container:empty {
    background: #f8f9fa;
    align-items: center;
}

.recaptcha-container:empty::before {
    content: "🔄 Loading reCAPTCHA...";
    color: #6c757d;
    font-size: 0.9rem;
}

.recaptcha-container iframe {
    border-radius: 4px;
}

.captcha-status {
    text-align: center;
    margin: 0.5rem 0 1rem 0;
}

.captcha-status small {
    font-size: 0.85rem;
    color: #6c757d;
    transition: color 0.3s ease;
    font-weight: 500;
}

/* Auth required styles */
.auth-required {
    position: relative;
}

/* Removed lock icon overlay */

/* User info display */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 25px;
    font-size: 0.9rem;
}

.user-info .user-avatar {
    width: 24px;
    height: 24px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 768px) {
    .auth-dialog-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .phone-input-group {
        flex-direction: column;
    }
    
    .country-code {
        min-width: auto;
    }
    
    .otp-digit {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success animation */
@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }
    20% {
        height: 0;
        width: 7px;
        opacity: 1;
    }
    40% {
        height: 16px;
        width: 7px;
        opacity: 1;
    }
    100% {
        height: 16px;
        width: 7px;
        opacity: 1;
    }
}

.checkmark {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #28a745;
    position: relative;
    margin-right: 0.5rem;
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 7px;
    height: 16px;
    border: solid #28a745;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: checkmark 0.5s ease-in-out;
}
