:root {
    --auth-ink: #17211d;
    --auth-muted: #68726d;
    --auth-paper: #f7f5f0;
    --auth-orange: #e95612;
    --auth-orange-dark: #bd3f07;
    --auth-green: #174f3e;
    --auth-line: #deded8;
}

* { box-sizing: border-box; }

.auth-body {
    min-height: 100vh;
    margin: 0;
    background: var(--auth-paper);
    color: var(--auth-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.auth-page {
    width: min(1180px, calc(100% - 40px));
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    margin: 0 auto;
    padding: 64px 0 76px;
}

.auth-role-tabs {
    width: min(720px, 100%);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    padding: 7px;
    border: 1px solid var(--auth-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 10px 28px rgba(35, 46, 40, .07);
}

.auth-role-tabs a {
    min-height: 66px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #55605a;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.auth-role-tabs a:hover { background: #f7f5f0; color: var(--auth-ink); }
.auth-role-tabs a.is-active { border-color: #f0c9b6; background: #fff1e9; color: var(--auth-orange-dark); }
.auth-role-tabs svg { width: 25px; height: 25px; fill: none !important; stroke: currentColor !important; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-role-tabs svg path,
.auth-role-tabs svg rect,
.auth-role-tabs svg circle { fill: none !important; stroke: currentColor !important; }
.auth-role-tabs span { min-width: 0; }
.auth-role-tabs strong { display: block; margin-bottom: 3px; font-size: 13px; }
.auth-role-tabs small { display: block; color: #7b8580; font-size: 10px; line-height: 1.35; }

.auth-shell {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    overflow: hidden;
    border: 1px solid var(--auth-line);
    border-radius: 24px;
    background: white;
    box-shadow: 0 28px 70px rgba(35, 46, 40, .1);
}

.auth-shell--pro { grid-template-columns: minmax(420px, 1.1fr) minmax(0, .9fr); }
.auth-shell--pro .auth-card { grid-column: 1; grid-row: 1; }
.auth-shell--pro .auth-intro { grid-column: 2; grid-row: 1; }

.auth-intro {
    min-height: 610px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 60px;
    padding: 58px;
    position: relative;
    overflow: hidden;
    background: var(--auth-green);
    color: white;
}

.auth-intro::before,
.auth-intro::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
    pointer-events: none;
}

.auth-intro::before { width: 350px; height: 350px; right: -190px; top: -120px; }
.auth-intro::after { width: 230px; height: 230px; left: -120px; bottom: -135px; }
.auth-intro > * { position: relative; z-index: 1; }

.auth-body:not(.auth-body--pro) .auth-intro {
    background: linear-gradient(145deg, #c94409 0%, #ed6424 100%);
}

.auth-body:not(.auth-body--pro) .auth-intro__mark {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .12);
    color: white;
}

.auth-body:not(.auth-body--pro) .auth-eyebrow { color: #ffe0d0; }
.auth-body:not(.auth-body--pro) .auth-intro > div > p:last-child,
.auth-body:not(.auth-body--pro) .auth-benefits span { color: #ffe2d4; }
.auth-body:not(.auth-body--pro) .auth-benefits svg { background: rgba(255, 255, 255, .12); stroke: white; }

.auth-body--pro { background: #f2f6f3; }
.auth-body--pro .auth-role-tabs a.is-active { border-color: #afcfc2; background: #e8f2ee; color: var(--auth-green); }

.auth-intro__mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 34px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 15px;
    background: rgba(255, 255, 255, .1);
    color: #ffad82;
}

.auth-intro__mark svg { width: 27px; height: 27px; fill: none !important; stroke: currentColor !important; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-intro__mark svg path { fill: none !important; stroke: currentColor !important; }
.auth-eyebrow { margin: 0 0 17px; color: #ffad82; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.auth-intro h2 { max-width: 440px; margin: 0; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
.auth-intro > div > p:last-child { max-width: 430px; margin: 21px 0 0; color: #c1d4cd; font-size: 15px; line-height: 1.7; }

.auth-benefits { display: grid; gap: 19px; margin: 0; padding: 0; list-style: none; }
.auth-benefits li { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 14px; }
.auth-benefits svg { width: 35px; height: 35px; padding: 8px; border-radius: 9px; background: rgba(255, 255, 255, .09); color: #ffad82; fill: none !important; stroke: currentColor !important; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.auth-benefits svg path,
.auth-benefits svg rect,
.auth-benefits svg circle { fill: none !important; stroke: currentColor !important; }
.auth-benefits span { color: #a9c3ba; font-size: 12px; line-height: 1.55; }
.auth-benefits strong { display: block; margin-bottom: 2px; color: white; font-size: 13px; }

.auth-card { display: flex; justify-content: center; flex-direction: column; padding: 58px clamp(42px, 6vw, 82px); }
.auth-account-badge { width: fit-content; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px; padding: 7px 10px; border-radius: 99px; background: #fff0e8; color: var(--auth-orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.auth-account-badge svg { width: 14px; height: 14px; fill: none !important; stroke: currentColor !important; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-account-badge svg path { fill: none !important; stroke: currentColor !important; }
.auth-body--pro .auth-account-badge { background: #e7f1ed; color: var(--auth-green); }
.auth-kicker { margin: 0 0 14px; color: var(--auth-orange-dark); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.auth-card h1 { margin: 0; font-size: clamp(37px, 4vw, 50px); line-height: 1.08; letter-spacing: -.045em; }
.auth-subtitle { margin: 15px 0 32px; color: var(--auth-muted); font-size: 14px; line-height: 1.65; }

.auth-alert { margin: -12px 0 22px; padding: 12px 14px; border: 1px solid #f0c2ad; border-radius: 10px; background: #fff5f0; color: #9e3100; font-size: 13px; line-height: 1.5; }
.auth-alert[hidden] { display: none; }

.auth-form { display: grid; }
.auth-form > label,
.auth-label-row label { color: #39433e; font-size: 12px; font-weight: 800; }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; }
.auth-label-row a { color: var(--auth-orange-dark); font-size: 11px; font-weight: 800; text-decoration: none; }
.auth-label-row a:hover { text-decoration: underline; }

.auth-field {
    min-height: 53px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    margin-top: 8px;
    padding: 0 15px;
    border: 1px solid #d9d9d3;
    border-radius: 11px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-field:focus-within { border-color: var(--auth-orange); box-shadow: 0 0 0 3px rgba(233, 86, 18, .1); }
.auth-field > svg { width: 19px; height: 19px; fill: none; stroke: #88908c; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-field input { width: 100%; min-width: 0; padding: 15px 0; border: 0; outline: 0; background: transparent; color: var(--auth-ink); font: inherit; font-size: 14px; }
.auth-field input::placeholder { color: #a0a6a2; }

.password-toggle { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #7d8681; cursor: pointer; }
.password-toggle:hover { background: #f4f2ed; color: var(--auth-orange-dark); }
.password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle.is-visible { color: var(--auth-orange-dark); }

.auth-submit {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 25px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    background: var(--auth-orange);
    box-shadow: 0 11px 26px rgba(183, 62, 7, .17);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    transition: background .2s ease, transform .2s ease;
}

.auth-submit:hover { background: var(--auth-orange-dark); transform: translateY(-1px); }
.auth-submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.auth-divider { display: flex; align-items: center; gap: 13px; margin: 28px 0 16px; color: #8a918d; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e6e4de; }
.auth-register { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cacac3; border-radius: 11px; color: var(--auth-ink); font-size: 13px; font-weight: 900; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.auth-register:hover { border-color: #b7b4aa; background: #faf9f6; }
.auth-switch { margin: 22px 0 0; color: var(--auth-muted); font-size: 12px; text-align: center; }
.auth-switch a { color: var(--auth-orange-dark); font-weight: 900; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

.auth-body--pro .auth-kicker,
.auth-body--pro .auth-label-row a,
.auth-body--pro .auth-switch a { color: var(--auth-green); }
.auth-body--pro .auth-field:focus-within { border-color: var(--auth-green); box-shadow: 0 0 0 3px rgba(23, 79, 62, .11); }
.auth-body--pro .auth-submit { background: var(--auth-green); box-shadow: 0 11px 26px rgba(23, 79, 62, .17); }
.auth-body--pro .auth-submit:hover { background: #103d2f; }

.auth-error-card { max-width: 560px; min-height: 0; margin: 0 auto; padding: 56px; text-align: center; }
.auth-error-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 16px; background: #fff0e8; color: var(--auth-orange-dark); }
.auth-error-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-error-card h1 { font-size: clamp(32px, 4vw, 44px); }
.auth-error-card .auth-submit { margin-top: 9px; text-decoration: none; }

@media (max-width: 900px) {
    .auth-page { padding-top: 40px; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-shell--pro .auth-card,
    .auth-shell--pro .auth-intro { grid-column: auto; grid-row: auto; }
    .auth-intro { min-height: 0; padding: 44px; }
    .auth-intro h2 { max-width: 620px; }
    .auth-benefits { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .auth-benefits li { grid-template-columns: 1fr; }
    .auth-card { padding: 52px max(40px, 10vw); }
}

@media (max-width: 620px) {
    .auth-page { width: min(100% - 28px, 1180px); padding: 24px 0 48px; }
    .auth-shell { border-radius: 18px; }
    .auth-role-tabs { gap: 5px; padding: 5px; border-radius: 13px; }
    .auth-role-tabs a { min-height: 58px; gap: 8px; padding: 8px 10px; }
    .auth-role-tabs svg { width: 21px; height: 21px; }
    .auth-role-tabs small { display: none; }
    .auth-intro { gap: 38px; padding: 34px 26px; }
    .auth-intro__mark { margin-bottom: 25px; }
    .auth-intro h2 { font-size: 35px; }
    .auth-intro > div > p:last-child { font-size: 14px; }
    .auth-benefits { grid-template-columns: 1fr; }
    .auth-benefits li { grid-template-columns: auto 1fr; }
    .auth-card { padding: 38px 25px 42px; }
    .auth-card h1 { font-size: 38px; }
    .auth-error-card { padding: 38px 25px; }
}
