:root {
    --account-ink: #29221e;
    --account-muted: #81766e;
    --account-cream: #f8f4ee;
    --account-paper: #fffdf9;
    --account-caramel: #c96c3d;
    --account-gold: #e0aa4c;
}

* { box-sizing: border-box; }

body.account-page {
    min-height: 100vh;
    margin: 0;
    background: var(--account-cream);
    color: var(--account-ink);
    font-family: 'DM Sans', sans-serif;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(460px, .95fr);
    min-height: 100vh;
}

.login-story {
    position: relative;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    background: #226670;
    color: #fffaf3;
}

.story-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: min(100%, 650px);
    min-height: 100%;
    padding: clamp(2rem, 6vw, 5rem);
}

.story-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #fffaf3;
    font-size: .98rem;
    font-weight: 700;
    text-decoration: none;
}

.story-brand img {
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 14px;
}

.story-copy { max-width: 510px; margin: auto 0; }

.story-eyebrow, .panel-kicker {
    margin-bottom: 1.1rem;
    color: var(--account-gold);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.story-copy h1 {
    max-width: 500px;
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 5vw, 5.4rem);
    line-height: 1.02;
}

.story-description {
    max-width: 380px;
    margin: 1.7rem 0 0;
    color: rgba(255,250,243,.65);
    font-size: 1rem;
    line-height: 1.75;
}

.story-note {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: rgba(255,250,243,.48);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.note-line { width: 34px; height: 1px; background: var(--account-gold); }

.story-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(224,170,76,.23);
    border-radius: 50%;
    transform: rotate(-25deg);
}

.orbit-one { width: 620px; height: 270px; right: -210px; bottom: 13%; }
.orbit-two { width: 730px; height: 330px; right: -270px; bottom: 5%; }

.story-bean {
    position: absolute;
    z-index: 2;
    color: rgba(201,108,61,.5);
    font-size: 1.8rem;
}

.bean-one { top: 20%; right: 18%; transform: rotate(35deg); }
.bean-two { right: 13%; bottom: 28%; transform: rotate(-25deg) scale(.65); }

.login-panel {
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 5vw, 5rem);
    background: var(--account-paper);
}

.login-card { width: min(100%, 450px); }
.login-intro { margin-bottom: 2.5rem; }
.panel-kicker { margin-bottom: .8rem; color: var(--account-caramel); }

.login-intro h2 {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.1;
}

.login-intro p:last-child { margin: 1rem 0 0; color: var(--account-muted); font-size: .94rem; }
.login-alert { border: 0; border-radius: 10px; font-size: .86rem; }
.form-field { margin-bottom: 1.35rem; }
.form-field label { display: block; margin-bottom: .55rem; font-size: .78rem; font-weight: 700; }
.input-wrap { position: relative; }

.input-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 1;
    color: #aa9b91;
    transform: translateY(-50%);
}

.login-form .form-control {
    min-height: 54px;
    padding: .8rem 1rem .8rem 2.8rem;
    border: 1px solid #e4dbd1;
    border-radius: 9px;
    background: #fff;
    color: var(--account-ink);
    font-size: .9rem;
}

.login-form .form-control::placeholder { color: #b7aaa0; }
.login-form .form-control:focus { border-color: var(--account-caramel); box-shadow: 0 0 0 4px rgba(201,108,61,.12); }

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: .35rem 0 1.8rem;
    color: var(--account-muted);
    font-size: .76rem;
}

.login-options a { color: var(--account-caramel); font-weight: 700; text-decoration: none; }
.login-options a:hover { color: var(--account-ink); }

.login-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: .8rem 1.1rem .8rem 1.3rem;
    border: 0;
    border-radius: 9px;
    background: var(--account-ink);
    color: #fffaf3;
    font-size: .88rem;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.login-submit i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--account-caramel); font-size: 1rem; }
.login-submit:hover { background: #3a302a; color: #fffaf3; box-shadow: 0 12px 25px rgba(41,34,30,.16); transform: translateY(-2px); }
.login-footer { margin: 2rem 0 0; color: #ad9f95; font-size: .72rem; text-align: center; }

@media (max-width: 800px) {
    .login-layout { display: block; }
    .login-story, .story-content { min-height: 300px; }
    .story-content { padding: 1.5rem; }
    .story-brand img { width: 100px; height: 100px; }
    .story-copy { margin: auto 0 0; }
    .story-copy h1 { max-width: 500px; font-size: clamp(2.4rem, 10vw, 3.8rem); }
    .story-description, .story-note, .story-bean { display: none; }
    .login-panel { min-height: calc(100vh - 300px); padding: 2.5rem 1.5rem; }
}
