* { box-sizing: border-box; }
body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 1rem;
    background: #f2f6f2;
    color: #182b21;
    font: 1rem/1.55 system-ui, sans-serif;
}
.reset-card {
    width: min(100%, 29rem);
    padding: clamp(1.4rem, 6vw, 2.4rem);
    border: 1px solid #dbe5dc;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 12px 36px #182b210b;
}
.reset-brand, .reset-back {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-height: 44px;
    color: #194b34;
    font-weight: 650;
    text-decoration: none;
}
.reset-brand img { object-fit: contain; }
.reset-back { margin-top: 1.25rem; }
.reset-back:hover { text-decoration: underline; }
h1 { margin: 1.15rem 0 .45rem; font-size: clamp(1.65rem, 6vw, 2rem); line-height: 1.15; letter-spacing: -.04em; }
p { margin: 0 0 1rem; color: #495d50; }
label { display: block; margin: .8rem 0 .3rem; font-weight: 650; }
.auth-field-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 .75rem; }
.auth-field-header a { color: #194b34; text-underline-offset: .2em; }
input:where(:not([type=hidden], [type=checkbox])), button {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: .65rem .8rem;
    border: 1px solid #acbeb0;
    border-radius: .5rem;
    font: inherit;
}
button {
    margin-top: 1.15rem;
    border-color: #174b35;
    background: #174b35;
    color: white;
    font-weight: 650;
    cursor: pointer;
}
button:hover { background: #103b29; }
button:active { transform: scale(.98); }
:focus-visible { outline: 3px solid #237f55; outline-offset: 3px; }
.reset-error { padding: .65rem .75rem; border-radius: .45rem; background: #fff3f0; color: #8b2d22; }
@media (prefers-reduced-motion: reduce) { button:active { transform: none; } }

/* Sign-in uses a full-height scene while password recovery keeps the compact card. */
.dashboard-login {
    --login-forest: #0a442e;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    background: #f2f8ef;
}
.login-scene {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    flex: 1;
    place-items: center;
    padding: clamp(1.5rem, 4vw, 3rem) 1rem clamp(4.5rem, 9vw, 8.5rem);
    background: radial-gradient(ellipse at 30% 0%, #dcefe6, transparent 68%), #f3f8ef;
}
.login-panorama {
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: clamp(13rem, 35vw, 29rem);
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, #000 20%);
    pointer-events: none;
}
.login-panorama img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.login-panorama::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 87%, var(--login-forest));
    content: "";
}
.dashboard-login .reset-card {
    width: min(100%, 30rem);
    padding: clamp(1.15rem, 3vw, 1.8rem);
    border-radius: 1.3rem;
    background: #fff;
    box-shadow: 0 16px 48px #183f2e22;
}
.login-card-mark { display: block; margin-inline: auto; object-fit: contain; }
.dashboard-login h1 { margin-top: .6rem; text-align: center; color: #103d2b; }
.login-intro { margin-bottom: 1.25rem; text-align: center; }
.login-input { position: relative; }
.login-input input {
    padding-inline-start: 2.75rem;
    background: #f2f6fb;
    border-color: #b6c8cf;
    color: #182b21;
}
.login-input-password input { padding-inline-end: 3.15rem; }
.login-input-icon {
    position: absolute;
    inset: 50% auto auto .85rem;
    width: 1.25rem;
    height: 1.25rem;
    transform: translateY(-50%);
    color: #435b62;
    pointer-events: none;
}
.login-password-toggle {
    position: absolute;
    inset: 50% .15rem auto auto;
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    transform: translateY(-50%);
    background: transparent;
    color: #314b52;
}
.login-password-toggle[hidden] { display: none; }
.login-password-toggle:hover { background: #e1ebe9; border-radius: .4rem; }
.login-password-toggle:active { transform: translateY(-50%); }
.login-password-toggle svg { width: 1.3rem; height: 1.3rem; }
.login-password-toggle .login-eye-slash { display: none; }
.login-password-toggle[data-visible] .login-eye-slash { display: block; }
.login-remember { display: flex; align-items: center; gap: .55rem; min-height: 44px; font-weight: 500; }
.login-remember input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: #174b35; }
.dashboard-login button[type=submit] { margin-top: .6rem; }
.dashboard-login button[type=submit] span { margin-inline-start: .35rem; }
.login-signup {
    margin: 1.15rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #e0eae1;
    text-align: center;
}
.login-signup a { color: #155739; font-weight: 650; text-underline-offset: .2em; }
.login-footer { color: #fff; background: var(--login-forest); }
.login-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem 1.5rem;
    width: min(92%, 90rem);
    margin-inline: auto;
    padding-block: .75rem 1.2rem;
    font-size: .9rem;
}
.login-footer p { margin: 0; color: #e8f5eb; }
.login-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 1rem; }
.login-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.login-footer a { color: #fff; text-underline-offset: .2em; }
.login-footer a:focus-visible { outline-color: #fff; }

@media (max-width: 40rem) {
    .login-scene { padding-bottom: 6rem; }
    .login-footer-inner { grid-template-columns: 1fr; }
    .login-footer nav { justify-content: flex-start; }
}
