:root {
    --auth-ink: #142521;
    --auth-muted: #64736f;
    --auth-line: #dce6e2;
    --auth-surface: #ffffff;
    --auth-soft: #f3f7f5;
    --auth-primary: #16745e;
    --auth-primary-dark: #0d5846;
    --auth-accent: #d8a64c;
    --auth-danger: #b42318;
    --auth-radius: 18px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    color: var(--auth-ink);
    background: var(--auth-soft);
    font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: var(--auth-primary); }

.auth-shell {
    display: grid;
    grid-template-columns: minmax(390px, .92fr) minmax(520px, 1.08fr);
    min-height: 100vh;
}

.auth-showcase {
    position: relative;
    display: flex;
    min-height: 100vh;
    padding: clamp(36px, 5vw, 76px);
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(8, 39, 32, .98), rgba(12, 83, 65, .94)),
        #102a25;
    isolation: isolate;
}

.auth-showcase::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    opacity: .26;
    background-image: radial-gradient(rgba(255,255,255,.28) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.showcase-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
}

.showcase-orb-one {
    width: 440px;
    height: 440px;
    top: -230px;
    right: -190px;
    background: rgba(50, 190, 148, .18);
}

.showcase-orb-two {
    width: 320px;
    height: 320px;
    bottom: -190px;
    left: -110px;
    background: rgba(216, 166, 76, .14);
}

.brand {
    position: absolute;
    top: clamp(36px, 5vw, 72px);
    left: clamp(36px, 5vw, 76px);
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    text-decoration: none;
}

.brand-mark,
.brand-logo {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 14px;
    background: rgba(255,255,255,.1);
    box-shadow: inset 0 1px rgba(255,255,255,.16);
}

.brand-mark { font-size: 22px; color: #75ddbd; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.brand span:last-child { display: flex; flex-direction: column; }
.brand strong { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: rgba(255,255,255,.62); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.showcase-copy {
    align-self: center;
    max-width: 590px;
}

.showcase-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 7px 11px;
    border: 1px solid rgba(117, 221, 189, .24);
    border-radius: 999px;
    color: #a9ead6;
    background: rgba(117, 221, 189, .08);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.showcase-copy h2 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(38px, 4.6vw, 68px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.055em;
}

.showcase-copy p {
    max-width: 520px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.66);
    font-size: 16px;
    line-height: 1.75;
}

.showcase-features {
    position: absolute;
    right: clamp(36px, 5vw, 76px);
    bottom: clamp(70px, 9vh, 110px);
    left: clamp(36px, 5vw, 76px);
    display: flex;
    gap: 12px;
}

.showcase-features div {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 9px;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    color: rgba(255,255,255,.76);
    background: rgba(255,255,255,.055);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 600;
}

.showcase-features i { color: #75ddbd; font-size: 16px; }
.showcase-foot { position: absolute; bottom: 28px; left: clamp(36px, 5vw, 76px); margin: 0; color: rgba(255,255,255,.35); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 52px clamp(28px, 7vw, 110px) 28px;
    background:
        radial-gradient(circle at 95% 5%, rgba(22,116,94,.08), transparent 27%),
        var(--auth-soft);
}

.auth-panel { width: 100%; max-width: 470px; }
.auth-mobile-brand { display: none; }

.auth-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.auth-icon {
    display: grid;
    flex: 0 0 50px;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid #cfe1da;
    border-radius: 15px;
    color: var(--auth-primary);
    background: #e9f4f0;
    font-size: 21px;
}

.auth-eyebrow { margin: 0 0 4px; color: var(--auth-primary); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.auth-heading h1 { margin: 0; font-size: clamp(25px, 3vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -.035em; }
.auth-description { margin: 0 0 28px; color: var(--auth-muted); font-size: 14px; line-height: 1.7; }

.auth-form { margin-top: 28px; }
.form-group { margin-bottom: 19px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-label { display: block; margin-bottom: 8px; color: #334540; font-size: 12px; font-weight: 800; }
.form-control-wrap { position: relative; }
.form-control-icon { position: absolute; top: 50%; left: 16px; z-index: 1; color: #82908c; transform: translateY(-50%); pointer-events: none; }

.form-control {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--auth-line);
    border-radius: 13px;
    outline: none;
    color: var(--auth-ink);
    background: var(--auth-surface);
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-control.has-icon { padding-left: 45px; }
.form-control::placeholder { color: #a4afac; }
.form-control:hover { border-color: #bdcec8; }
.form-control:focus { border-color: var(--auth-primary); box-shadow: 0 0 0 4px rgba(22,116,94,.11); }
.form-control.is-invalid { border-color: var(--auth-danger); }
.invalid-feedback { margin-top: 6px; color: var(--auth-danger); font-size: 11px; font-weight: 600; }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #71817c;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle:hover { color: var(--auth-primary); background: var(--auth-soft); }
.form-control-wrap:has(.password-toggle) .form-control { padding-right: 48px; }

.form-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 3px 0 24px; }
.form-check { display: inline-flex; align-items: center; gap: 8px; color: var(--auth-muted); font-size: 12px; cursor: pointer; }
.form-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--auth-primary); }
.auth-link { color: var(--auth-primary); font-size: 12px; font-weight: 800; text-decoration: none; }
.auth-link:hover { color: var(--auth-primary-dark); text-decoration: underline; text-underline-offset: 3px; }

.btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
    cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(22,116,94,.22); outline-offset: 2px; }
.btn:disabled { opacity: .55; transform: none; cursor: not-allowed; }
.btn-primary { color: #fff; background: var(--auth-primary); box-shadow: 0 9px 22px rgba(13,88,70,.17); }
.btn-primary:hover { background: var(--auth-primary-dark); box-shadow: 0 12px 26px rgba(13,88,70,.23); }
.btn-secondary { border-color: var(--auth-line); color: #40534d; background: #fff; }
.btn-secondary:hover { border-color: #bfcfc9; background: #f9fbfa; }
.btn-warning { color: #503b13; background: #f4d28e; }
.btn-block { width: 100%; }
.button-stack { display: grid; gap: 10px; }

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 18px 0;
    padding: 13px 14px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.55;
}

.auth-alert-success { border-color: #b9dfd0; color: #0c604a; background: #eaf7f2; }
.auth-alert-danger { border-color: #f0c4bf; color: #8e2118; background: #fff0ee; }
.auth-alert-info { border-color: #c6dce8; color: #28566d; background: #edf7fc; }
.auth-alert-warning { border-color: #ead7ab; color: #72551c; background: #fff9e9; }
.auth-alert ul { margin: 4px 0 0; padding-left: 17px; }

.otp-input {
    height: 72px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .55em;
    padding-left: calc(16px + .55em);
}

.auth-note { margin: 18px 0 0; color: var(--auth-muted); font-size: 11px; line-height: 1.6; text-align: center; }
.auth-footer { display: flex; align-items: center; gap: 10px; margin-top: 42px; color: #84918d; font-size: 10px; font-weight: 600; }
.auth-footer i { margin-left: 3px; color: var(--auth-primary); }
.footer-separator { width: 3px; height: 3px; border-radius: 50%; background: #b4bfbc; }

@media (max-width: 1080px) {
    .auth-shell { grid-template-columns: minmax(330px, .8fr) minmax(500px, 1.2fr); }
    .showcase-features { display: none; }
}

@media (max-width: 820px) {
    .auth-shell { display: block; }
    .auth-showcase { display: none; }
    .auth-main { justify-content: flex-start; min-height: 100svh; padding: 28px 22px; }
    .auth-mobile-brand { display: block; width: 100%; max-width: 470px; margin-bottom: clamp(52px, 12vh, 100px); }
    .auth-mobile-brand .brand { position: static; color: var(--auth-ink); }
    .brand-dark .brand-mark { border-color: #cfe1da; background: #e9f4f0; }
    .brand-dark small { color: var(--auth-muted); }
    .auth-footer { margin-top: auto; padding-top: 38px; }
}

@media (max-width: 480px) {
    .auth-main { padding: 22px 18px; }
    .auth-mobile-brand { margin-bottom: 48px; }
    .auth-heading h1 { font-size: 25px; }
    .auth-description { margin-bottom: 22px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-meta { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
