:root {
    --navy-950: #081a27;
    --navy-900: #0c2635;
    --navy-800: #123846;
    --green-700: #23664e;
    --green-800: #194f3d;
    --green-100: #eaf3ed;
    color-scheme: light;
    font-family: "Segoe UI", Arial, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #172a32;
    background: var(--navy-950);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 16% 18%, rgba(35, 102, 78, 0.3), transparent 36%),
        radial-gradient(ellipse at 85% 85%, rgba(26, 78, 75, 0.38), transparent 38%),
        linear-gradient(135deg, #071722 0%, #102b36 48%, #081b28 100%);
}

button,
input {
    font: inherit;
}

.page-shell {
    display: flex;
    min-height: calc(100vh - 54px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 28px 24px;
}

.login-card {
    display: grid;
    width: min(100%, 940px);
    min-height: 530px;
    grid-template-columns: 0.92fr 1.08fr;
    overflow: hidden;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.welcome-panel {
    position: relative;
    display: flex;
    min-height: 510px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 34px 38px 40px;
    border-radius: 15px;
    color: #fff;
    background:
        radial-gradient(ellipse at 20% 24%, rgba(45, 117, 86, 0.3), transparent 33%),
        radial-gradient(ellipse at 78% 78%, rgba(29, 84, 77, 0.34), transparent 42%),
        repeating-linear-gradient(132deg, transparent 0 38px, rgba(194, 230, 210, 0.045) 39px, transparent 41px),
        linear-gradient(145deg, #123342 0%, #091d2a 56%, #12352f 100%);
}

.welcome-panel::before,
.welcome-panel::after {
    position: absolute;
    z-index: 0;
    width: 125%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(194, 230, 210, 0.28), transparent);
    transform: rotate(-35deg);
}

.welcome-panel::before {
    top: 27%;
    left: -18%;
}

.welcome-panel::after {
    top: 61%;
    left: -4%;
    transform: rotate(31deg);
}

.brand,
.welcome-copy,
.panel-mark {
    position: relative;
    z-index: 1;
}

.brand {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.welcome-copy {
    max-width: 390px;
    margin-bottom: 6px;
}

.eyebrow {
    margin: 0 0 15px;
    color: #a9d7bd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.welcome-copy h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 42px;
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.welcome-copy > p:last-child {
    max-width: 340px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.75;
}

.panel-mark {
    position: absolute;
    right: 21px;
    bottom: -102px;
    color: rgba(255, 255, 255, 0.035);
    font-size: 330px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 38px 56px;
}

.form-content {
    width: min(100%, 390px);
}

.form-eyebrow {
    margin-bottom: 13px;
    color: var(--green-700);
}

.form-content h2 {
    margin: 0;
    color: #172a32;
    font-size: 32px;
    font-weight: 750;
    letter-spacing: -0.04em;
    text-transform: capitalize;
}

.form-intro {
    margin: 9px 0 26px;
    color: #7a858d;
    font-size: 14px;
}

.field {
    margin-bottom: 15px;
}

.field > label {
    display: block;
    margin-bottom: 8px;
    color: #35414a;
    font-size: 12px;
    font-weight: 650;
}

.field input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #dce2e5;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #172a32;
    font-size: 13px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input::placeholder {
    color: #a2abb1;
}

.field input:focus {
    border-color: #3c8063;
    box-shadow: 0 0 0 3px rgba(48, 119, 84, 0.14);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #859097;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    background: var(--green-100);
    color: var(--green-700);
}

.password-toggle:focus-visible,
.quick-links a:focus-visible,
.form-options a:focus-visible,
.submit-button:focus-visible {
    outline: 3px solid rgba(48, 119, 84, 0.35);
    outline-offset: 2px;
}

.password-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 18px;
    font-size: 11px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #657078;
    cursor: pointer;
}

.remember-option input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--green-700);
}

.form-options a {
    color: var(--green-700);
    font-weight: 700;
    text-decoration: none;
}

.form-options a:hover {
    text-decoration: underline;
}

.submit-button {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--green-700);
    box-shadow: 0 7px 16px rgba(35, 102, 78, 0.22);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: background-color 160ms ease, transform 160ms ease;
}

.submit-button:hover {
    background: var(--green-800);
    transform: translateY(-1px);
}

.help-copy {
    margin: 19px 0 0;
    color: #9aa2a7;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

.help-copy span {
    color: #4f5c62;
    font-weight: 650;
}

.recovery-help {
    margin: 22px 0 24px;
    color: #657078;
    font-size: 13px;
    text-align: left;
}

.recovery-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.quick-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 16px;
}

.quick-links a {
    color: rgba(0, 0, 0, 0.68);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: color 160ms ease;
}

.quick-links a:hover {
    color: #424242;
}

.quick-links span {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
}

.site-footer {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
    text-align: center;
}

@media (max-width: 760px) {
    .page-shell {
        min-height: calc(100vh - 54px);
        padding: 24px 18px;
    }

    .login-card {
        width: min(100%, 520px);
        min-height: 0;
        grid-template-columns: 1fr;
        padding: 8px;
        border-radius: 18px;
    }

    .welcome-panel {
        display: none;
    }

    .form-panel {
        padding: 38px 24px 32px;
    }

    .form-intro {
        margin-bottom: 27px;
    }

}

@media (max-width: 380px) {
    .page-shell {
        padding-right: 12px;
        padding-left: 12px;
    }

    .form-panel {
        padding-right: 16px;
        padding-left: 16px;
    }

    .form-content h2 {
        font-size: 28px;
    }
}
