:root {
    --auth-navy: #061f41;
    --auth-navy-soft: #0b3158;
    --auth-teal: #13aa98;
    --auth-teal-dark: #078d82;
    --auth-text: #10233f;
    --auth-muted: #69758a;
    --auth-border: #d8dee8;
}

body.auth-body {
    background:
        radial-gradient(circle at 12% 14%, rgba(19, 170, 152, .09), transparent 23%),
        radial-gradient(circle at 88% 80%, rgba(6, 31, 65, .08), transparent 28%),
        #f5f7fb;
}

.auth-page {
    display: grid;
    place-items: center;
    padding: 0 20px;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(285px, .78fr) minmax(420px, 1.22fr);
    width: min(980px, 100%);
    overflow: hidden;
    border: 1px solid rgba(216, 222, 232, .72);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 65px rgba(20, 39, 70, .14);
}

.auth-panel {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px 32px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(4, 27, 57, .93), rgba(4, 29, 61, .98)),
        repeating-linear-gradient(90deg, transparent 0 72px, rgba(255, 255, 255, .03) 73px 76px);
}

.auth-panel::before,
.auth-panel::after {
    position: absolute;
    content: '';
    pointer-events: none;
}

.auth-panel::before {
    right: 20px;
    top: 20px;
    width: 84px;
    height: 84px;
    opacity: .55;
    background-image: radial-gradient(circle, var(--auth-teal) 2px, transparent 2.5px);
    background-size: 20px 20px;
}

.auth-panel::after {
    right: -70px;
    bottom: -70px;
    width: 330px;
    height: 540px;
    border: 22px solid rgba(255, 255, 255, .035);
    border-bottom: 0;
    border-radius: 160px 160px 0 0;
    box-shadow: -85px 25px 0 -62px rgba(255, 255, 255, .04), -170px 60px 0 -145px rgba(255, 255, 255, .04);
}

.auth-brand,
.auth-panel-copy,
.auth-panel-footer {
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: flex;
    width: fit-content;
    max-width: 100%;
    gap: 12px;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.auth-brand-mark {
    position: relative;
    display: block;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

.auth-brand-mark img {
    position: absolute;
    top: 1px;
    left: 50%;
    width: 132px;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
}

.auth-brand-copy strong,
.auth-brand-copy small {
    display: block;
}

.auth-brand-copy strong {
    color: #24b6a5;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.auth-brand-copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .7);
    font-size: .52rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-panel-copy h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.65rem, 2.3vw, 2.2rem);
    line-height: 1.16;
    letter-spacing: -.035em;
}

.auth-panel-copy h1 span {
    color: #18bca8;
}

.auth-panel-copy > p {
    max-width: 400px;
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: .85rem;
    line-height: 1.55;
}

.auth-benefits {
    display: grid;
    gap: 10px;
    margin-top: 17px;
}

.auth-benefit {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: center;
}

.auth-benefit-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(19, 170, 152, .45);
    border-radius: 50%;
    color: #24c7b4;
    background: rgba(19, 170, 152, .08);
    font-size: 1.05rem;
}

.auth-benefit strong,
.auth-benefit small {
    display: block;
}

.auth-benefit strong { color: #fff; font-size: .82rem; }
.auth-benefit small { margin-top: 2px; color: rgba(255, 255, 255, .7); font-size: .74rem; line-height: 1.35; }

.auth-secure {
    display: flex;
    gap: 9px;
    align-items: center;
    color: rgba(255, 255, 255, .86);
    font-size: .8rem;
}

.auth-secure i { color: #24c7b4; font-size: 1.25rem; }

.auth-form-panel {
    display: grid;
    place-items: center;
    padding: 22px clamp(24px, 4vw, 44px);
    background:
        radial-gradient(circle at 92% 8%, rgba(19, 170, 152, .05), transparent 18%),
        #fff;
}

.auth-form-wrap {
    width: 100%;
    max-width: 440px;
}

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

.auth-heading-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: var(--auth-teal-dark);
    background: #e1f5f1;
    font-size: 1.1rem;
}

.auth-heading h2 {
    margin: 0 0 4px;
    color: var(--auth-navy);
    font-size: clamp(1.55rem, 2.6vw, 1.9rem);
    letter-spacing: -.04em;
}

.auth-heading p { margin: 0; color: var(--auth-muted); font-size: .84rem; }

.auth-alert {
    margin-bottom: 13px;
    padding: 9px 12px;
    border: 1px solid #a9e2d9;
    border-radius: 10px;
    color: #08766d;
    background: #effbf9;
    font-size: .8rem;
}

.auth-field { margin-bottom: 10px; }
.auth-field label { display: block; margin-bottom: 4px; color: var(--auth-text); font-size: .8rem; font-weight: 700; }

.auth-input-wrap { position: relative; }

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    z-index: 2;
    color: #748197;
    font-size: .95rem;
    transform: translateY(-50%);
}

.auth-input {
    width: 100%;
    height: 42px;
    padding: 0 42px 0 42px;
    border: 1.5px solid var(--auth-border);
    border-radius: 8px;
    outline: none;
    color: var(--auth-text);
    background: #fff;
    font-size: .86rem;
    transition: border-color .18s, box-shadow .18s;
}

.auth-input::placeholder { color: #9aa4b4; }
.auth-input:focus { border-color: var(--auth-teal); box-shadow: 0 0 0 4px rgba(19, 170, 152, .1); }
.auth-input.is-invalid { border-color: #dc3545; }
.auth-input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220, 53, 69, .09); }

.auth-toggle-password {
    position: absolute;
    right: 5px;
    top: 50%;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    color: #748197;
    background: transparent;
    transform: translateY(-50%);
}

.auth-toggle-password:hover { color: var(--auth-teal-dark); background: #f0faf8; }
.auth-error { display: block; margin-top: 4px; color: #c93545; font-size: .72rem; font-weight: 600; }
.auth-help { display: block; margin-top: 3px; color: var(--auth-muted); font-size: .68rem; }

.auth-options { display: flex; justify-content: space-between; align-items: center; margin: 0 0 11px; }
.auth-check { display: inline-flex; gap: 7px; align-items: center; color: var(--auth-text); font-size: .78rem; font-weight: 650; cursor: pointer; }
.auth-check input { width: 15px; height: 15px; accent-color: var(--auth-teal); }
.auth-link { font-size: .78rem; }
.auth-link { border: 0; color: #087f74; background: transparent; font-weight: 700; text-decoration: none; }
.auth-link:hover { color: var(--auth-navy); text-decoration: underline; }

.auth-submit {
    display: flex;
    width: 100%;
    min-height: 42px;
    gap: 8px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(100deg, #087e91, #11b99d);
    box-shadow: 0 12px 25px rgba(17, 185, 157, .22);
    font-size: .86rem;
    font-weight: 800;
    transition: transform .18s, box-shadow .18s;
}

.auth-submit:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 15px 30px rgba(17, 185, 157, .3); }
.auth-submit:disabled { opacity: .7; transform: none; }

.auth-separator { display: flex; gap: 12px; align-items: center; margin: 12px 0 9px; color: #8994a4; font-size: .74rem; }
.auth-separator::before, .auth-separator::after { flex: 1; height: 1px; content: ''; background: #e1e5ec; }
.auth-switch { margin: 0; color: var(--auth-muted); text-align: center; font-size: .78rem; }

.otp-input {
    height: 60px;
    padding: 0 18px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: .45em;
}

.otp-actions { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 20px; }
.otp-actions form { margin: 0; }
.otp-resend:disabled { color: #99a2b0; cursor: not-allowed; text-decoration: none; }

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-panel { min-height: 215px; padding: 22px 26px; }
    .auth-panel-copy { margin: 20px 0 12px; }
    .auth-benefits { display: none; }
    .auth-form-panel { padding: 24px; }
}

@media (max-width: 575px) {
    .auth-page { padding: 0 12px; }
    .auth-shell { border-radius: 16px; }
    .auth-panel { min-height: 190px; padding: 18px; }
    .auth-brand { gap: 9px; }
    .auth-brand-mark { flex-basis: 58px; width: 58px; height: 58px; }
    .auth-brand-mark img { top: 1px; width: 112px; }
    .auth-brand-copy strong { font-size: .92rem; }
    .auth-brand-copy small { font-size: .46rem; }
    .auth-panel-copy { margin: 18px 0 4px; }
    .auth-panel-copy h1 { margin-bottom: 7px; font-size: 1.55rem; }
    .auth-panel-copy > p { font-size: .8rem; line-height: 1.5; }
    .auth-panel-footer { display: none; }
    .auth-form-panel { padding: 22px 17px 25px; place-items: start center; }
    .auth-heading { gap: 10px; margin-bottom: 15px; }
    .auth-heading-icon { flex-basis: 42px; width: 42px; height: 42px; }
    .auth-heading h2 { font-size: 1.55rem; }
    .auth-heading p { font-size: .78rem; }
    .auth-input { height: 44px; }
    .auth-submit { min-height: 44px; }
    .auth-options { align-items: flex-start; gap: 12px; }
}
