:root {
    --ink: #183c37;
    --teal: #12675d;
    --muted: #5d716b;
    --line: #d7e1da;
    --cream: #f7f6ef;
    --accent: #dfaa62;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: var(--ink);
    font-family: "Nunito", "Segoe UI", sans-serif;
    background:
        radial-gradient(ellipse at 0 20%, #e2eee5, transparent 50%),
        radial-gradient(ellipse at 100% 100%, #eee7d7, transparent 40%),
        var(--cream);
    min-height: 100vh;
}
a {
    color: var(--teal);
    text-underline-offset: 4px;
}
button,
input {
    font: inherit;
}
button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid #bb7c27;
    outline-offset: 4px;
}
[hidden] {
    display: none !important;
}
.auth-header,
.auth-footer {
    max-width: 1180px;
    margin: auto;
    padding: 25px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: var(--ink);
}
.brand img {
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
}
.brand strong {
    display: block;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 1.8px;
    font-weight: 800;
    margin-top: 3px;
}
.back-link {
    font-size: 14px;
    text-decoration: none;
    font-weight: 700;
}
.back-link span {
    margin-right: 7px;
}
.auth-shell {
    max-width: 1116px;
    margin: 14px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 75px #163d3210;
    border: 1px solid #ffffff;
    animation: arrive 0.55s ease-out;
}
.brand-panel {
    padding: 54px 44px 30px;
    color: #edf6ee;
    background:
        radial-gradient(circle at 95% 15%, #397c65 0, transparent 45%),
        linear-gradient(145deg, #174e43, #0c3933);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    min-height: 650px;
}
.brand-panel:after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px solid #ffffff12;
    border-radius: 50%;
    bottom: -290px;
    left: -110px;
    box-shadow:
        0 0 0 50px #ffffff04,
        0 0 0 100px #ffffff03;
    pointer-events: none;
}
.brand-intro,
.care-note,
.panel-bottom {
    position: relative;
    z-index: 1;
}
.eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.brand-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
.brand-panel h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(40px, 4.6vw, 60px);
    line-height: 1.12;
    letter-spacing: -1.7px;
    margin: 42px 0 25px;
}
.brand-panel h2 em {
    color: #ecd6ac;
    font-weight: 400;
}
.brand-intro p {
    font-size: 15px;
    line-height: 1.8;
    color: #c9ddd3;
}
.care-note {
    border-top: 1px solid #ffffff25;
    padding-top: 25px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.note-mark {
    font-size: 28px;
    background: #ffffff0d;
    border: 1px solid #ffffff25;
    border-radius: 14px;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    text-align: center;
    line-height: 46px;
    color: #ecd6ac;
}
.care-note strong {
    font-size: 17px;
}
.care-note p {
    font-size: 13px;
    line-height: 1.7;
    color: #c9ddd3;
    margin: 7px 0 0;
}
.panel-bottom {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #bbd2c8;
}
.form-panel {
    padding: 40px 50px;
    display: flex;
    align-items: center;
}
.form-content {
    width: 100%;
    max-width: 410px;
    margin: auto;
}
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--line);
    gap: 26px;
    margin-bottom: 32px;
}
.auth-tabs a {
    padding: 0 0 12px;
    text-decoration: none;
    font-size: 14px;
    color: var(--muted);
    font-weight: 700;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.auth-tabs a[aria-current="page"] {
    color: var(--teal);
    border-color: var(--teal);
}
.form-eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--teal);
    margin: 0 0 10px;
}
h1 {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 0 0 10px;
    font-weight: 800;
}
.form-subtitle {
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 0 25px;
}
.field {
    margin: 0 0 18px;
}
.field label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}
.field input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fcfdfa;
    padding: 11px 14px;
    color: var(--ink);
    font-size: 16px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.field input::placeholder {
    color: #7b8781;
    font-size: 14px;
}
.field input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px #12675d12;
    background: #fff;
}
.password-field {
    position: relative;
}
.password-field input {
    padding-right: 66px;
}
.password-toggle {
    position: absolute;
    right: 4px;
    top: 3px;
    min-height: 42px;
    min-width: 56px;
    border: 0;
    background: transparent;
    border-radius: 7px;
    color: var(--teal);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}
.form-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    margin: 6px 0 25px;
}
.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-height: 30px;
}
.remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--teal);
}
.form-options a {
    font-weight: 800;
}
.submit-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 0;
    border-radius: 11px;
    background: var(--teal);
    color: #fff;
    min-height: 50px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 7px 18px #12675d18;
}
.submit-button:hover {
    background: #0c5148;
}
.submit-button span {
    font-size: 22px;
    font-weight: 400;
}
.form-switch {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin: 23px 0 0;
}
.form-switch a {
    font-weight: 800;
}
.account-note {
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    margin: 17px 0 0;
}
.field-hint {
    font-size: 11px;
    color: var(--muted);
    margin: 6px 0 0;
}
.field-error {
    font-size: 12px;
    line-height: 1.5;
    color: #a12626;
    margin: 7px 0 0;
}
input[aria-invalid="true"] {
    border-color: #b83737;
}
.error-summary,
.form-notice {
    font-size: 13px;
    line-height: 1.5;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0 0 20px;
}
.error-summary {
    background: #fff1ef;
    color: #a12626;
    border: 1px solid #f2d4cf;
}
.form-notice {
    background: #edf6f1;
    border: 1px solid #d4e5da;
    color: var(--ink);
}
.auth-footer {
    font-size: 11px;
    color: var(--muted);
    padding-top: 15px;
    padding-bottom: 25px;
}
.skip-link {
    position: absolute;
    top: -80px;
    left: 15px;
    z-index: 5;
    background: #fff;
    padding: 14px;
}
.skip-link:focus {
    top: 10px;
}
@keyframes arrive {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 1160px) {
    .auth-shell {
        margin: 10px 24px;
    }
    .form-panel {
        padding: 36px;
    }
    .brand-panel {
        padding: 44px 32px 28px;
    }
}
@media (max-width: 760px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 530px;
        margin: 4px auto 15px;
    }
    .brand-panel {
        display: none;
    }
    .form-panel {
        padding: 32px;
    }
    .auth-header,
    .auth-footer {
        max-width: 580px;
        padding: 20px 24px;
    }
    .brand img {
        width: 46px;
        height: 46px;
    }
    .brand strong {
        font-size: 20px;
    }
    .brand small {
        font-size: 8px;
        letter-spacing: 1px;
    }
    .back-link {
        font-size: 12px;
    }
    .auth-tabs {
        margin-bottom: 26px;
    }
}
@media (max-width: 570px) {
    .auth-shell {
        margin: 5px 16px 12px;
        border-radius: 20px;
    }
    .auth-header {
        padding: 20px 18px;
        gap: 10px;
    }
    .form-panel {
        padding: 28px 24px;
    }
    .auth-footer {
        padding: 12px 20px;
        flex-wrap: wrap;
        gap: 8px;
    }
    h1 {
        font-size: 29px;
    }
    .brand small {
        letter-spacing: 0.5px;
    }
    .back-link span {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .auth-shell {
        animation: none;
    }
    .field input {
        transition: none;
    }
}
