/* ── Login Page — VaultLend Professional Theme ──────────────────────────
   Fonts: Cormorant Garamond (Serif), DM Sans (Sans-serif)
   Color Palette: 
   - Deep Onyx: #1a1209
   - Heritage Gold: #b4861c
   - Soft Cream: #fdf8f0
   - Muted Gold: #e8c87a
   ────────────────────────────────────────────────────────────────────────── */

body:has(.login-shell) {
    background: #1a1209;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Hide the shared navbar and footer on the login page */
body:has(.login-shell) .navbar,
body:has(.login-shell) nav,
body:has(.login-shell) header:not(.login-shell),
body:has(.login-shell) footer {
    display: none !important;
}

/* Reset layout containers */
body:has(.login-shell) .container,
body:has(.login-shell) .container-fluid,
body:has(.login-shell) .row {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

.login-shell {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 100vh;
    font-family: 'DM Sans', sans-serif;
}

/* ── Left Panel (Branding & Trust) ──────────────────────────────────────── */

.login-left {
    background: #1a1209;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(180, 134, 28, 0.15);
    position: relative;
    overflow: hidden;
    color: #f0dfa0;
}

/* Subtle background texture */
.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(180, 134, 28, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #b4861c 0%, #8a5e14 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1209;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 600;
    color: #e8c87a;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.left-headline {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

.left-headline h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    font-weight: 500;
    color: #f0dfa0;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.01em;
}

.left-headline p {
    font-size: 16px;
    color: #a38b6d;
    line-height: 1.6;
    margin: 0;
    max-width: 320px;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #8a7050;
    transition: color 0.3s ease;
}

.trust-item:hover {
    color: #e8c87a;
}

.trust-item svg {
    color: #b4861c;
    flex-shrink: 0;
}

/* ── Right Panel (Form) ─────────────────────────────────────────────────── */

.login-right {
    background: #fdf8f0;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-right-content {
    width: 100%;
    max-width: 400px;
}

.form-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 600;
    color: #1a1209;
    margin: 0 0 0.5rem 0;
}

.form-sub {
    font-size: 15px;
    color: #7a6040;
    margin: 0 0 2.5rem 0;
}

.login-alert-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff5f3;
    border-left: 4px solid #d85a30;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 14px;
    color: #993c1d;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(216, 90, 48, 0.1);
}

.login-alert-error svg {
    margin-top: 2px;
    flex-shrink: 0;
    color: #d85a30;
}

.login-field-group {
    margin-bottom: 1.5rem;
}

.login-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #5a4020;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.login-field-wrap {
    position: relative;
}

.login-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b4861c;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.login-field-input {
    width: 100%;
    height: 52px;
    background: #ffffff;
    border: 1px solid #e2d1a8;
    border-radius: 10px;
    padding: 0 16px 0 44px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #1a1209;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
}

.login-field-input::placeholder {
    color: #c4a870;
    opacity: 0.6;
}

.login-field-input:focus {
    border-color: #b4861c;
    box-shadow: 0 0 0 4px rgba(180, 134, 28, 0.1);
}

.login-field-input:focus + .login-field-icon {
    opacity: 1;
}

.login-pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #b4861c;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.login-pw-toggle:hover {
    opacity: 1;
}

.login-submit-btn {
    width: 100%;
    height: 54px;
    background: #1a1209;
    color: #e8c87a;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 18, 9, 0.15);
}

.login-submit-btn:hover {
    background: #2a1d08;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(26, 18, 9, 0.25);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 2rem 0;
}

.login-divider-line {
    flex: 1;
    height: 1px;
    background: #e2d1a8;
}

.login-divider-text {
    font-size: 13px;
    color: #b4a070;
    font-weight: 500;
}

.login-register-link {
    text-align: center;
    font-size: 14px;
    color: #7a6040;
    margin: 0;
}

.login-register-link a {
    color: #8a5e14;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-register-link a:hover {
    color: #b4861c;
    text-decoration: underline;
}

/* ── Responsive Refinements ─────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .login-shell {
        grid-template-columns: 1fr 1fr;
    }
    .left-headline h1 {
        font-size: 44px;
    }
}

@media (max-width: 850px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-left {
        padding: 3rem 2rem;
        border-right: none;
        border-bottom: 1px solid rgba(180, 134, 28, 0.15);
        min-height: auto;
    }

    .left-headline {
        padding: 2.5rem 0;
    }

    .left-headline h1 {
        font-size: 38px;
    }

    .left-headline p {
        max-width: 100%;
    }

    .trust-badges {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .login-right {
        padding: 4rem 2rem;
    }
}

@media (max-width: 480px) {
    .login-left {
        padding: 2.5rem 1.5rem;
    }

    .left-headline h1 {
        font-size: 32px;
    }

    .trust-badges {
        flex-direction: column;
        gap: 12px;
    }

    .login-right {
        padding: 3rem 1.5rem;
    }

    .form-heading {
        font-size: 30px;
    }

    .login-field-input {
        height: 48px;
    }

    .login-submit-btn {
        height: 50px;
    }
}

/* Eye toggle visibility logic */
.eye-hidden {
    display: none !important;
}
