.auth-layout {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    animation: fadeUp 0.7s ease both;
    overflow: hidden;
    background-color: var(--ink-mid);
    position: relative;
}

.auth-bg {
    position: absolute;
    inset: 0;
    filter: blur(4px);
    opacity: 0.35;
    z-index: 0;
}

.auth-bg-cell {
    position: absolute;
    width: 70vw;
    height: 70vh;
    background-size: cover;
    background-position: center;
    animation: auth-drift linear infinite alternate;
    --drift-x: 0px;
    --drift-y: 0px;
}
@keyframes auth-drift {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(var(--drift-x), var(--drift-y)); }
}

.auth-card {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    padding: 3rem 3rem 2.5rem;
    border: 1px solid rgba(184,154,90,0.25);
    background: var(--cream);
    box-shadow: 0 4px 24px rgba(26,22,18,0.3), 0 0 80px rgba(26,22,18,0.15);
}

.auth-corner {
    position: absolute;
    width: 36px;
    height: 36px;
    border-color: var(--gold);
    border-style: solid;
    opacity: 0.8;
}
.auth-corner.tl { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.auth-corner.tr { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.auth-corner.bl { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.auth-corner.br { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

.auth-eyebrow {
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.auth-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.auth-divider {
    width: 32px;
    height: 1px;
    background: var(--gold);
    opacity: 0.45;
    margin-bottom: 2rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.4rem;
}

.auth-label {
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-light);
}

.auth-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(184,154,90,0.4);
    color: var(--ink);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 300;
    padding: 0.4rem 0;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
}

.auth-input:focus {
    border-bottom-color: var(--gold);
}

.auth-input::placeholder {
    color: var(--ink-light);
    opacity: 0.4;
    font-style: italic;
}

.auth-submit {
    width: 100%;
    padding: 0.85rem 1.4rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--ink-mid);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
    margin-top: 0.6rem;
    font-family: 'Cinzel', serif;
}

.auth-submit:hover {
    background: var(--gold);
    color: var(--cream);
}

.auth-footer {
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(184,154,90,0.15);
    font-size: 0.68rem;
    color: var(--ink-light);
    letter-spacing: 0.06em;
    text-align: center;
    font-family: 'Jost', sans-serif;
}

.auth-footer a {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.2s;
}

.auth-footer a:hover { opacity: 0.75; }

.auth-flash {
    font-size: 0.72rem;
    font-family: 'Jost', sans-serif;
    color: #a0503c;
    letter-spacing: 0.05em;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(160,80,60,0.25);
    background: rgba(160,80,60,0.06);
    margin-bottom: 1.4rem;
}

@media (max-width: 600px) {
    .auth-layout {
        padding: 2rem 1rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 1.8rem;
    }

    .auth-corner {
        width: 24px;
        height: 24px;
    }
}