/* CSS Root Variables */
:root {
    --primary-color: #2196f3;
    --primary-hover: #1976d2;
    --text-primary: #212121;
    --text-secondary: #757575;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --error-color: #f44336;
    --success-color: #4caf50;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    width: 100%;
    max-width: 400px;
}

/* Logo Section */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-placeholder img{
    /* width: 80px; */
    height: 70px;
    background: #e8eaf6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--primary-color);
    font-size: 30px;
}

/* Typography */
.auth-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 20px;
}

/* Form Styles */
.auth-form {
    width: 100%;
}

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

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 15px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    background: var(--bg-white);
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-input.error {
    border-color: var(--error-color);
}

/* Password Input with Toggle */
.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
}

/* OTP Inputs */

/* OTP-specific styling */
.otp-card {
    max-width: 500px;
    text-align: center;
}

.otp-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.otp-sent-to {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.contact-info {
    font-weight: 600;
    color: var(--text-primary);
}

/* Timer Display */
.otp-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.timer-display.expired {
    color: var(--error-color);
}

.timer-text {
    font-size: 12px;
    color: var(--text-secondary);
}

/* OTP Input Fields */
.otp-input-container {
    margin-bottom: 30px;
}

.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 15px 0;
}

.otp-digit {
    width: 50px;
    height: 60px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    background: var(--bg-white);
    transition: all 0.2s ease;
}

.otp-digit:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.otp-digit.filled {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.otp-digit.error {
    border-color: var(--error-color);
    background: rgba(239, 68, 68, 0.05);
}

/* Resend Button */
.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    transition: opacity 0.2s ease;
}

.btn-link:disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

.resend-info {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}



.otp-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 30px;
}

.otp-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* margin-top: 10px; */
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
}

/* Loading Spinner */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s ease infinite;
}

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

/* Links */
.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 20px;
    justify-items: center;
}

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

/* Error Messages */
.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}


/* ============================================================================
   TOAST NOTIFICATIONS - SIMPLE & MODERN
   ============================================================================ */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 380px;
    pointer-events: none;
}

.toast {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    margin-bottom: 12px;
    min-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: all;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Toast Types - Simple colored left border */
.toast.success {
    border-left: 4px solid #22c55e;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

/* Toast Content */
.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #22c55e;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast.info .toast-icon {
    color: #3b82f6;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
}

/* Close Button */
.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 12px;
    padding: 4px;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
    #toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
        padding: 14px 16px;
    }
}



/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
        margin: 10px;
    }

    .auth-title {
        font-size: 24px;
    }

    .otp-container {
        gap: 8px;
    }

    .otp-input {
        width: 45px;
        height: 50px;
        font-size: 18px;
    }

    .otp-inputs {
        gap: 8px;
    }

    .otp-digit {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }

    .timer-display {
        font-size: 16px;
    }
}