:root {
    --auth-navy: #071a3c;
    --auth-navy-2: #102e5d;
    --auth-cyan: #00d5d0;
    --auth-red: #f31835;
    --auth-ink: #17243b;
    --auth-muted: #6f7d91;
    --auth-line: #d8e1ec;
}

* { box-sizing: border-box; }

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

body.auth-page {
    margin: 0;
    padding: 20px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 15% 10%, rgba(0, 213, 208, .16), transparent 30%), #eaf2f9;
    color: var(--auth-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.auth-shell {
    width: min(1180px, 100%);
    min-height: min(760px, calc(100vh - 40px));
    display: grid;
    grid-template-columns: minmax(410px, .88fr) minmax(470px, 1.12fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(10, 33, 69, .13);
}

.auth-panel {
    padding: 36px clamp(32px, 4.6vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.auth-brand {
    width: fit-content;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-navy);
    text-decoration: none;
}

.auth-brand img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

.auth-heading { margin-bottom: 22px; text-align: center; }
.auth-heading h1 {
    margin: 0 0 7px;
    color: var(--auth-navy);
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}
.auth-heading p { max-width: 420px; margin: 0 auto; color: var(--auth-muted); font-size: .9rem; line-height: 1.55; }

.auth-alert {
    margin-bottom: 15px;
    padding: 11px 13px;
    border: 1px solid #bfe7d3;
    border-radius: 10px;
    background: #edf9f3;
    color: #166a44;
    font-size: .82rem;
    line-height: 1.45;
}
.auth-alert--error { border-color: #f3c0c7; background: #fff1f3; color: #a91c32; }

.auth-field { margin-bottom: 13px; }
.auth-field label { display: block; margin: 0 0 6px; color: #33415b; font-size: .76rem; font-weight: 750; }
.auth-input { position: relative; }
.auth-input > i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    transform: translateY(-50%);
    color: #34506d;
    font-size: 1rem;
    pointer-events: none;
}
.auth-input input {
    width: 100%;
    min-height: 47px;
    padding: 11px 44px 11px 42px;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--auth-ink);
    font: inherit;
    font-size: .87rem;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.auth-input input:focus { border-color: #168bb5; box-shadow: 0 0 0 3px rgba(0, 168, 197, .11); }
.auth-input input::placeholder { color: #9aa7b7; }
.auth-input input[aria-invalid="true"] { border-color: #e02d47; }
.auth-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    padding: 8px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #5f7085;
    cursor: pointer;
}
.auth-error { display: block; margin-top: 5px; color: #bd2038; font-size: .73rem; }

.auth-row { margin: 2px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: .78rem; }
.auth-check { display: flex; align-items: flex-start; gap: 8px; color: #536176; line-height: 1.45; }
.auth-check input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--auth-navy); }
.auth-link { color: #e41534; font-weight: 750; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

.auth-submit, .auth-google {
    width: 100%;
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 10px;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.auth-submit {
    border: 0;
    background: linear-gradient(100deg, #fa1938, #e9082b);
    color: #fff;
    box-shadow: 0 9px 20px rgba(243, 24, 53, .2);
    transition: transform .16s ease, filter .16s ease;
}
.auth-submit:hover { filter: brightness(1.04); transform: translateY(-1px); }
.auth-google { border: 1px solid var(--auth-line); background: #fff; color: #25334a; }
.auth-google:hover { background: #f7fbff; }
.auth-google[aria-disabled="true"] { cursor: not-allowed; opacity: .58; }
.auth-google__mark { color: #4285f4; font-size: 1.12rem; font-weight: 950; }

.auth-separator { margin: 17px 0; display: flex; align-items: center; gap: 12px; color: #929eae; font-size: .72rem; }
.auth-separator::before, .auth-separator::after { height: 1px; flex: 1; background: #e2e8ef; content: ""; }
.auth-bottom { margin: 18px 0 0; color: var(--auth-muted); font-size: .78rem; text-align: center; }
.auth-note { margin: 22px 0 0; color: #8995a5; font-size: .69rem; line-height: 1.5; text-align: center; }

.auth-visual {
    position: relative;
    min-height: 100%;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(145deg, var(--auth-navy), var(--auth-navy-2));
    color: #fff;
}
.auth-visual::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--auth-visual-image, none);
    background-position: center;
    background-size: cover;
    content: "";
    transform: scale(1.015);
}
.auth-visual::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(3, 14, 34, .14), rgba(3, 15, 38, .9));
    content: "";
}
.auth-visual__logo { position: absolute; top: 36px; left: 42px; width: 106px; height: 106px; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,.35)); }
.auth-visual__content { max-width: 460px; }
.auth-visual__eyebrow { margin: 0 0 10px; color: var(--auth-cyan); font-size: .69rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.auth-visual h2 { margin: 0 0 14px; font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.04; letter-spacing: -.045em; }
.auth-visual__copy { max-width: 410px; margin: 0; color: #d5e2ef; font-size: .92rem; line-height: 1.65; }
.auth-benefits { margin-top: 28px; display: grid; gap: 14px; }
.auth-benefit { display: flex; align-items: center; gap: 12px; color: #f0f5fb; font-size: .85rem; }
.auth-benefit i { width: 38px; height: 38px; display: grid; flex: 0 0 38px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; color: var(--auth-cyan); font-size: 1.1rem; }
.auth-visual__foot { margin-top: 35px; padding-top: 16px; display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid rgba(255,255,255,.22); color: #b4c7da; font-size: .65rem; letter-spacing: .08em; }

.auth-status-icon { width: 76px; height: 76px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: #eaf9f2; color: #09a756; font-size: 2.25rem; }

@media (max-width: 900px) {
    body.auth-page { padding: 12px; }
    .auth-shell { max-width: 560px; min-height: 0; grid-template-columns: 1fr; border-radius: 20px; }
    .auth-panel { padding: 28px 25px 32px; }
    .auth-visual { min-height: 250px; padding: 28px 25px; }
    .auth-visual__logo { top: 18px; right: 20px; left: auto; width: 72px; height: 72px; }
    .auth-visual h2 { max-width: 360px; font-size: 1.8rem; }
    .auth-visual__copy { max-width: 350px; font-size: .8rem; }
    .auth-benefits { margin-top: 18px; grid-template-columns: 1fr; gap: 9px; }
    .auth-benefit i { width: 31px; height: 31px; flex-basis: 31px; }
    .auth-visual__foot { display: none; }
}

@media (max-width: 390px) {
    body.auth-page { padding: 0; background: #fff; }
    .auth-shell { border: 0; border-radius: 0; box-shadow: none; }
    .auth-panel { padding: 23px 20px 28px; }
    .auth-brand img { width: 78px; height: 78px; }
    .auth-row { font-size: .72rem; }
}
