/* Login and recovery share the same visual language as the portal. */
.premium-login { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(2rem, 6vw, 7rem); max-width: 1440px; margin: auto; }
.login-story { position: relative; overflow: hidden; align-self: stretch; min-height: 650px; display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 5rem); border-radius: 28px; background: #222b26; color: #fff; }
.story-eyebrow { font-size: 12px; letter-spacing: .22em; color: #e5eaaa; }
.login-story h2 { font-size: clamp(42px, 4.5vw, 66px); font-weight: 500; letter-spacing: -.055em; line-height: 1.08; margin: 28px 0 20px; z-index: 1; }
.login-story p { max-width: 290px; color: #ced5cc; font-size: 17px; z-index: 1; }
.story-footer { margin-top: auto; padding-top: 160px; font-size: 12px; color: #c7cec3; max-width: 280px; z-index: 1; }
.story-art { position: absolute; right: -45px; bottom: 85px; display: flex; gap: 18px; transform: rotate(-25deg); opacity: .7; }
.story-art i { display: block; width: 48px; height: 200px; border: 1px solid #aab98b; border-radius: 40px; }
.story-art i:nth-child(odd) { background: #e8ed87; border: 0; width: 24px; }
.premium-login .card { justify-self: center; border-top: 0; padding: 32px; box-shadow: 0 24px 80px rgb(34 43 23 / 6%); }
.premium-login .brand { gap: 16px; margin-bottom: 28px; }
.premium-login .brand p { font-size: 14px; }
.password-control { position: relative; }
.premium-login .password-control input { padding-right: 94px; width: 100%; min-height: 48px; border: 1px solid #c9cebf; border-radius: 10px; font: inherit; font-size: 16px; }
.premium-login .password-toggle { position: absolute; right: 6px; top: 2px; min-height: 44px; padding: 0 10px; background: transparent; border: 0; color: #47553d; font: inherit; font-size: 12px; cursor: pointer; }
.premium-login button[type="submit"] { background: #242f26; color: #fff; transition: background .18s, transform .18s; }
.premium-login button[type="submit"]:hover { background: #3c4d37; transform: translateY(-1px); }
@media (max-width: 850px) { .premium-login { grid-template-columns: 1fr; gap: 0; } .login-story { display: none; } .premium-login .card { padding: 24px; } }
@media (max-width: 480px) { .premium-login { padding: 12px; } .premium-login .brand { margin-bottom: 20px; gap: 12px; } .premium-login .brand img { height: 32px; } .premium-login .field { margin-bottom: 14px; } .premium-login .row { margin-bottom: 0; } .premium-login .hint { margin-top: 18px; padding-top: 16px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .premium-login button[type="submit"] { transition: none; } .premium-login button[type="submit"]:hover { transform: none; } }
body {
    background: #f3f4ee;
    min-height: 100svh;
    padding: clamp(1rem, 4vw, 3rem);
    color: #20251b;
}
main, .card {
    max-width: 460px;
    border: 1px solid #dfe2d7;
    border-top: 5px solid #f6e700;
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 20px 60px rgb(34 43 23 / 7%);
}
.brand { align-items: flex-start; text-align: left; gap: 1rem; margin-bottom: 2rem; }
main > img { margin: 0 0 1.75rem; }
.brand img, main > img { height: 2.75rem; max-width: 100%; object-fit: contain; }
h1, .brand h1 { font-size: 1.65rem; font-weight: 600; line-height: 1.25; letter-spacing: -.035em; text-align: left; }
p, .brand p, .hint { color: #62665c; line-height: 1.65; }
.field { margin-bottom: 1.25rem; }
label { color: #383f31; font-weight: 600; }
input[type="email"], input[type="password"] { min-height: 48px; border-color: #c9cebf; border-radius: 10px; font-size: 16px; }
input:focus { border-color: #566444; box-shadow: 0 0 0 3px rgb(86 100 68 / 14%); }
input[type="checkbox"] { accent-color: #555f2d; width: 18px; height: 18px; flex: 0 0 auto; }
.row { min-height: 44px; margin-bottom: 1rem; color: #515a47; }
button, button[type="submit"] { min-height: 48px; border-radius: 10px; font-weight: 600; }
button:hover, button[type="submit"]:hover { background: #e5d800; }
button:disabled { cursor: wait; opacity: .65; }
a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.forgot, .back { padding-block: .65rem; }
.hint { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #e3e6dc; text-align: left; }
.error, .message { line-height: 1.6; overflow-wrap: anywhere; border: 1px solid #dce2cf; }
.error, .message.error { border-color: #e8bdb7; color: #94291e; background: #fff1ee; }
.message:not(.error) { color: #2c5330; background: #eff6e9; }
:is(a, button, input):focus-visible { outline: 2px solid #364a2d; outline-offset: 3px; }
@media (max-width: 480px) {
    body { align-items: start; padding-top: max(1.5rem, env(safe-area-inset-top)); }
    main, .card { border-radius: 16px; }
}
/* Keep premium responsive overrides last in the cascade. */
@media (max-width: 850px) {
    body.premium-login { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    body.premium-login { padding: max(12px, env(safe-area-inset-top)) 12px 12px; }
    .premium-login .card { width: 100%; padding: 20px; }
}
