:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --error-color: #ef4444;
    --success-color: #10b981;
}

.firebase-otp-container {
    max-width: 420px;
    margin: 40px auto;
    padding: 35px;
    border-radius: 20px;
    background: var(--glass-bg);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.firebase-otp-header {
    text-align: center;
    margin-bottom: 30px;
}

.firebase-otp-header h2 {
    margin: 0 0 8px;
    color: var(--text-main);
    font-size: 24px;
    font-weight: 700;
}

.firebase-otp-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.input-group {
    margin-bottom: 20px;
}

.firebase-otp-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

/* Intl Tel Input Adjustments */
.iti {
    width: 100%;
}

.firebase-otp-container input[type="tel"],
.firebase-otp-container input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #f9fafb;
    color: var(--text-main);
}

.firebase-otp-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: #fff;
}

.firebase-otp-container button {
    position: relative;
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.firebase-otp-container button:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.firebase-otp-container button:active:not(:disabled) {
    transform: translateY(0);
}

.firebase-otp-container button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loader Styles */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.firebase-otp-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.firebase-otp-message.error {
    display: block;
    background: #fef2f2;
    color: var(--error-color);
    border: 1px solid #fee2e2;
}

.firebase-otp-message.success {
    display: block;
    background: #f0fdf4;
    color: var(--success-color);
    border: 1px solid #dcfce7;
}

.resend-text {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    color: var(--text-muted);
}

.resend-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

.success-box {
    text-align: center;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}

.success-box a {
    color: var(--primary-color);
    font-weight: 600;
}
