/* =====================================================
   Modern Auth (Login) Styles - Web Desktop Version
   ===================================================== */

.auth-modern-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: #172033;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
}

.auth-modern-layout::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(23, 32, 51, 0.85) 0%, rgba(10, 15, 25, 0.95) 100%);
    backdrop-filter: blur(4px);
}

.auth-brand-content {
    position: absolute;
    top: 32px;
    left: 32px;
    color: white;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-brand-logo svg {
    width: 32px;
    height: 32px;
}
.auth-brand-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}
.auth-brand-content h2, .auth-brand-content p {
    display: none;
}

.auth-modern-right {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
    position: relative;
    z-index: 10;
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: white;
}

.auth-card {
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}
.auth-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}
.auth-header p {
    color: #cbd5e1;
    font-size: 0.9rem;
}

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

.auth-form .form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #e2e8f0;
    font-size: 0.85rem;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 12px;
    color: var(--vg-muted);
    display: flex;
}
.auth-input-icon svg { width: 18px; height: 18px; }

.auth-form .form-control {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.4);
    color: white;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.auth-form .form-control::placeholder {
    color: #94a3b8;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--vg-brand);
    box-shadow: 0 0 0 4px var(--vg-brand-soft);
    background: var(--vg-surface);
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--vg-muted);
    cursor: pointer;
    display: flex;
    padding: 0;
}
.auth-password-toggle:hover { color: var(--vg-text); }
.auth-password-toggle svg { width: 18px; height: 18px; }

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--vg-text-secondary);
}

.auth-checkbox input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--vg-line-strong);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.auth-checkbox input[type="checkbox"]:checked {
    background-color: var(--vg-brand);
    border-color: var(--vg-brand);
}

.auth-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px; top: 1px;
    width: 5px; height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth-forgot-link {
    color: var(--vg-brand);
    font-weight: 500;
}
.auth-forgot-link:hover { text-decoration: underline; }

.btn-auth {
    width: 100%;
    padding: 12px;
    background: var(--vg-brand);
    color: white;
    border: none;
    border-radius: var(--vg-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-auth:hover { background: var(--vg-brand-dark); box-shadow: var(--vg-shadow-sm); }
.btn-auth:disabled { opacity: 0.7; cursor: not-allowed; }

.auth-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--vg-muted);
}

/* ── Toasts for Auth ──────────────────────────────────────── */
.auth-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-toast {
    background: var(--vg-surface);
    border: 1px solid var(--vg-line);
    border-left: 4px solid var(--vg-brand);
    padding: 16px;
    border-radius: var(--vg-radius-sm);
    box-shadow: var(--vg-shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 320px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auth-toast.error { border-left-color: var(--vg-danger); }
.auth-toast.error .auth-toast-icon { color: var(--vg-danger); }
.auth-toast.success { border-left-color: var(--vg-success); }
.auth-toast.success .auth-toast-icon { color: var(--vg-success); }

.auth-toast-content { flex: 1; }
.auth-toast-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.auth-toast-msg { font-size: 0.85rem; color: var(--vg-text-secondary); }

.auth-toast-close {
    background: none; border: none; padding: 0;
    color: var(--vg-muted); cursor: pointer;
}
.auth-toast-close:hover { color: var(--vg-text); }
