/* ============================================================
   DQ VISA — AUTH PAGE STYLES
   ============================================================ */

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--visa-header-h) + 2rem) 1rem 2rem;
    background: var(--c-cream);
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: var(--c-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--sh-md);
    border: 1px solid var(--c-border-subtle);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-family: var(--f-display);
    font-size: var(--t-2xl);
    color: var(--c-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    font-size: var(--t-sm);
    color: var(--c-muted);
}

.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-form-group .form-label {
    display: block;
    font-size: var(--t-sm);
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: 0.4rem;
}

.field-hint {
    font-weight: 400;
    color: var(--c-muted);
    font-size: var(--t-xs);
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--c-muted);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--c-gold);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--t-sm);
    color: var(--c-text);
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--c-gold);
    cursor: pointer;
}

.forgot-link {
    font-size: var(--t-sm);
    color: var(--c-gold);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--c-gold-dark);
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: var(--t-sm);
    color: #dc2626;
    margin-bottom: 1rem;
    display: none;
}

.auth-error.show {
    display: block;
}

.auth-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: var(--t-sm);
    color: #16a34a;
    margin-bottom: 1rem;
}

.auth-btn {
    width: 100%;
    padding: 0.9rem;
    font-size: var(--t-base);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-border-subtle);
}

.auth-switch p {
    font-size: var(--t-sm);
    color: var(--c-muted);
}

.auth-switch a {
    color: var(--c-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-switch a:hover {
    color: var(--c-gold-dark);
}

.auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: rgba(201, 162, 39, 0.06);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}

.auth-notice i,
.auth-notice svg {
    width: 16px;
    height: 16px;
    color: var(--c-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-notice span {
    font-size: var(--t-sm);
    color: var(--c-text);
    line-height: 1.4;
}

/* ─── TOAST NOTIFICATIONS ────────────────────────────────── */
.toast-container {
    position: fixed;
    top: calc(var(--visa-header-h) + 1rem);
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--c-white);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    min-width: 300px;
    max-width: 400px;
    pointer-events: all;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

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

.toast.toast-exit {
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 18px;
    height: 18px;
}

.toast-success .toast-icon {
    background: #ecfdf5;
    color: #10b981;
}

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

.toast-info .toast-icon {
    background: rgba(201, 162, 39, 0.1);
    color: var(--c-gold);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 2px;
}

.toast-message {
    font-size: var(--t-xs);
    color: var(--c-muted);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--c-muted);
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.toast-close svg {
    width: 14px;
    height: 14px;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    animation: toast-progress-anim 3.5s linear forwards;
}

.toast-success .toast-progress {
    background: #10b981;
}

.toast-error .toast-progress {
    background: #ef4444;
}

.toast-info .toast-progress {
    background: var(--c-gold);
}

@keyframes toast-progress-anim {
    from { width: 100%; }
    to { width: 0%; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.75rem 1.25rem;
    }

    .auth-header h2 {
        font-size: var(--t-xl);
    }

    .auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
