:root {
    --auth-navy: #040423;
    --auth-navy-soft: #0b1634;
    --auth-blue: #102e58;
    --auth-orange: #f34100;
    --auth-orange-light: #ff6b35;
    --auth-ink: #17172a;
    --auth-muted: #686879;
    --auth-line: #dedee5;
    --auth-paper: #f5f5f7;
    --auth-white: #fff;
    --auth-radius: 10px;
    --auth-container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--auth-navy); }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--auth-white);
    background: var(--auth-navy);
    font-family: "Barlow", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
.auth-container { width: min(calc(100% - 48px), var(--auth-container)); margin-inline: auto; }
.auth-skip { position: fixed; left: 16px; top: -80px; z-index: 2000; padding: 10px 18px; color: #fff; background: var(--auth-orange); text-decoration: none; }
.auth-skip:focus { top: 12px; }

.auth-header {
    position: relative;
    z-index: 20;
    height: 78px;
    color: #fff;
    background: rgba(4, 4, 35, .96);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}
.auth-header-accent { height: 3px; background: linear-gradient(90deg, var(--auth-orange), var(--auth-orange-light)); }
.auth-header-inner { height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.auth-brand { display: block; flex: 0 0 auto; }
.auth-brand img { display: block; width: 132px; height: auto; }
.auth-header-actions { display: flex; align-items: center; gap: 20px; }
.auth-header-divider { width: 1px; height: 24px; background: rgba(255,255,255,.17); }
.auth-back { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.72); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s; }
.auth-back:hover { color: #fff; }
.auth-back span { color: var(--auth-orange-light); font-size: 17px; }
.auth-language { display: flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; }
.auth-language form { display: contents; }
.auth-language button { padding: 0; border: 0; color: rgba(255,255,255,.42); background: transparent; font-size: 11px; font-weight: 700; letter-spacing: .05em; cursor: pointer; }
.auth-language button:hover, .auth-language button.is-active { color: var(--auth-orange-light); }
.auth-language span { color: rgba(255,255,255,.2); font-size: 10px; }

.auth-main {
    position: relative;
    min-height: calc(100vh - 78px - 94px);
    display: flex;
    align-items: center;
    padding: 54px 0 58px;
    overflow: hidden;
    background: linear-gradient(125deg, var(--auth-navy) 0%, #07112b 58%, #0c2448 100%);
}
.auth-grid { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 58px 58px; -webkit-mask-image: linear-gradient(to right, #000, transparent 78%); mask-image: linear-gradient(to right, #000, transparent 78%); }
.auth-orbit { position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; pointer-events: none; }
.auth-orbit-one { width: 610px; height: 610px; right: -190px; top: -200px; }
.auth-orbit-two { width: 420px; height: 420px; right: -40px; top: -70px; border-color: rgba(243,65,0,.16); }
.auth-glow { position: absolute; width: 410px; height: 410px; right: -80px; bottom: -240px; border-radius: 50%; background: rgba(243,65,0,.1); filter: blur(80px); }

.auth-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .95fr) minmax(480px, 1.05fr); gap: clamp(54px, 7vw, 100px); align-items: center; }
.auth-story { position: relative; max-width: 535px; padding: 18px 0; }
.auth-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 21px; color: var(--auth-orange-light); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.auth-eyebrow > span { width: 28px; height: 2px; background: var(--auth-orange); }
.auth-story h1 { margin: 0; max-width: 570px; font-size: clamp(43px, 4.5vw, 61px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
.auth-story-lead { max-width: 530px; margin: 24px 0 0; color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.68; }
.auth-benefits { display: grid; gap: 13px; margin: 34px 0 0; padding: 0; list-style: none; }
.auth-benefits li { display: flex; align-items: center; gap: 14px; }
.auth-benefits > li > .material-icons-outlined { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,107,53,.25); border-radius: 7px; color: var(--auth-orange-light); background: rgba(243,65,0,.1); font-size: 21px; }
.auth-benefits strong, .auth-benefits small { display: block; }
.auth-benefits strong { color: rgba(255,255,255,.91); font-size: 14px; font-weight: 600; }
.auth-benefits small { margin-top: 1px; color: rgba(255,255,255,.45); font-size: 12px; }

.auth-ai-card { position: absolute; right: -56px; bottom: 3px; width: 195px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; overflow: hidden; background: rgba(8,16,42,.9); box-shadow: 0 18px 44px rgba(0,0,0,.22); transform: rotate(-2deg); animation: auth-float 6s ease-in-out infinite; }
.auth-ai-head { display: flex; align-items: center; gap: 8px; padding: 10px; }
.auth-ai-avatar { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 6px; color: #fff; background: linear-gradient(135deg, var(--auth-orange), var(--auth-orange-light)); font-size: 12px; font-weight: 800; }
.auth-ai-head strong, .auth-ai-head small { display: block; line-height: 1.2; }
.auth-ai-head strong { font-size: 9px; }
.auth-ai-head small { margin-top: 3px; color: rgba(255,255,255,.46); font-size: 6px; }
.auth-ai-head i { display: inline-block; width: 4px; height: 4px; margin-right: 2px; border-radius: 50%; background: #48d893; }
.auth-ai-head b { margin-left: auto; padding: 2px 5px; border: 1px solid rgba(255,255,255,.16); border-radius: 3px; color: var(--auth-orange-light); font-size: 7px; }
.auth-ai-body { display: grid; gap: 6px; padding: 9px 10px 11px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); }
.auth-ai-body span { height: 7px; border-radius: 10px; background: rgba(255,255,255,.09); }
.auth-ai-body span:nth-child(1) { width: 76%; }
.auth-ai-body span:nth-child(2) { width: 62%; margin-left: auto; background: rgba(243,65,0,.5); }
.auth-ai-body span:nth-child(3) { width: 88%; }

.auth-card { width: 100%; padding: 43px 46px 38px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; color: var(--auth-ink); background: rgba(255,255,255,.985); box-shadow: 0 34px 80px rgba(0,0,0,.3); }
.auth-register .auth-card { padding-top: 35px; padding-bottom: 31px; }
.auth-card-header { margin-bottom: 27px; }
.auth-register .auth-card-header { margin-bottom: 21px; }
.auth-card-kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; color: var(--auth-orange); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.auth-card-kicker .material-icons-outlined { font-size: 17px; }
.auth-card h2 { margin: 0; color: var(--auth-ink); font-size: clamp(30px, 3vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.auth-card-header p { margin: 10px 0 0; color: var(--auth-muted); font-size: 14px; line-height: 1.55; }

.auth-alert { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid; border-radius: 7px; font-size: 12px; line-height: 1.45; }
.auth-alert > .material-icons-outlined { margin-top: 1px; font-size: 19px; }
.auth-alert strong, .auth-alert span { display: block; }
.auth-alert strong { margin-bottom: 2px; font-size: 12px; }
.auth-alert-error { border-color: #fecaca; color: #991b1b; background: #fef2f2; }
.auth-alert-success { border-color: #a7f3d0; color: #065f46; background: #ecfdf5; }

.auth-form { display: grid; gap: 18px; }
.auth-form-register { gap: 14px; }
.auth-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-field { min-width: 0; }
.auth-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 7px; color: #29293b; font-size: 12px; font-weight: 700; }
.auth-field label small { color: #9292a0; font-size: 10px; font-weight: 500; }
.auth-control { position: relative; }
.auth-control-icon { position: absolute; left: 15px; top: 50%; z-index: 1; color: #9b9ba7; font-size: 19px; transform: translateY(-50%); pointer-events: none; transition: color .2s; }
.auth-control input { width: 100%; height: 52px; padding: 0 46px 0 44px; border: 1px solid var(--auth-line); border-radius: 7px; outline: 0; color: var(--auth-ink); background: #fff; font-size: 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
.auth-form-register .auth-control input { height: 47px; }
.auth-control input::placeholder { color: #a3a3ad; }
.auth-control input:hover { border-color: #c3c3cc; }
.auth-control input:focus { border-color: var(--auth-orange); box-shadow: 0 0 0 3px rgba(243,65,0,.1); }
.auth-control:focus-within .auth-control-icon { color: var(--auth-orange); }
.auth-control input.is-invalid { border-color: #dc2626; background: #fffafa; }
.auth-password-toggle { position: absolute; right: 8px; top: 50%; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px; color: #898994; background: transparent; cursor: pointer; transform: translateY(-50%); transition: color .2s, background .2s; }
.auth-password-toggle:hover { color: var(--auth-orange); background: rgba(243,65,0,.07); }
.auth-password-toggle .material-icons-outlined { font-size: 19px; }
.auth-form-hint { display: flex; align-items: center; gap: 6px; margin: -3px 0 0; color: #858592; font-size: 11px; }
.auth-form-hint .material-icons-outlined { color: var(--auth-orange); font-size: 15px; }
.auth-form-options { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: -1px 0 1px; }
.auth-form-options > a, .auth-switch a { color: var(--auth-orange); font-size: 13px; font-weight: 600; text-decoration: none; }
.auth-form-options > a:hover, .auth-switch a:hover { text-decoration: underline; }
.auth-checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--auth-muted); font-size: 13px; cursor: pointer; }
.auth-checkbox input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.auth-checkbox > span { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #c9c9d2; border-radius: 4px; background: #fff; transition: border-color .2s, background .2s; }
.auth-checkbox input:checked + span { border-color: var(--auth-orange); background: var(--auth-orange); }
.auth-checkbox input:checked + span::after { content: ""; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.auth-checkbox input:focus-visible + span { outline: 3px solid rgba(243,65,0,.17); }
.auth-submit { width: 100%; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin-top: 2px; padding: 12px 22px; border: 1px solid var(--auth-orange); border-radius: 5px; color: #fff; background: var(--auth-orange); box-shadow: 0 10px 25px rgba(243,65,0,.22); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.auth-form-register .auth-submit { min-height: 48px; }
.auth-submit:hover { background: #d93a00; box-shadow: 0 14px 30px rgba(243,65,0,.3); transform: translateY(-2px); }
.auth-submit .material-icons-outlined { font-size: 19px; }
.auth-switch { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid #ececf0; color: var(--auth-muted); text-align: center; font-size: 13px; }
.auth-register .auth-switch { margin-top: 17px; padding-top: 16px; }

.cf-turnstile { margin-top: 1px; }
.text-danger { color: #b91c1c; }
.small { font-size: 12px; }
.mt-1 { margin-top: 4px; }
.mt-3 { margin-top: 12px; }

.auth-footer { position: relative; z-index: 5; min-height: 94px; display: flex; align-items: center; border-top: 1px solid rgba(255,255,255,.08); background: var(--auth-navy); }
.auth-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-block: 22px; }
.auth-footer strong, .auth-footer span { display: block; }
.auth-footer strong { color: rgba(255,255,255,.75); font-size: 13px; font-weight: 600; }
.auth-footer span { margin-top: 2px; color: rgba(255,255,255,.36); font-size: 11px; }
.auth-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
.auth-footer nav a { color: rgba(255,255,255,.45); font-size: 12px; text-decoration: none; transition: color .2s; }
.auth-footer nav a:hover { color: #fff; }

@keyframes auth-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(-1deg); } }

@media (max-width: 1080px) {
    .auth-layout { grid-template-columns: minmax(0, .86fr) minmax(450px, 1.14fr); gap: 48px; }
    .auth-ai-card { display: none; }
    .auth-story h1 { font-size: 47px; }
}

@media (max-width: 880px) {
    .auth-main { padding: 44px 0 50px; }
    .auth-layout { width: min(calc(100% - 48px), 660px); grid-template-columns: 1fr; gap: 38px; }
    .auth-story { max-width: 620px; text-align: center; }
    .auth-eyebrow { justify-content: center; }
    .auth-story-lead { margin-inline: auto; }
    .auth-benefits { grid-template-columns: repeat(3, 1fr); text-align: left; }
    .auth-benefits li { align-items: flex-start; }
    .auth-benefits small { display: none; }
}

@media (max-width: 640px) {
    .auth-container { width: min(calc(100% - 32px), var(--auth-container)); }
    .auth-header-actions { gap: 12px; }
    .auth-header-divider { display: none; }
    .auth-back { font-size: 0; }
    .auth-back span { font-size: 20px; }
    .auth-main { align-items: flex-start; padding: 35px 0 40px; }
    .auth-layout { width: min(calc(100% - 32px), 560px); gap: 28px; }
    .auth-story { padding: 0; }
    .auth-story h1 { font-size: 37px; }
    .auth-story-lead { margin-top: 17px; font-size: 15px; }
    .auth-benefits { grid-template-columns: 1fr; gap: 9px; max-width: 390px; margin: 24px auto 0; }
    .auth-benefits li { align-items: center; }
    .auth-benefits > li > .material-icons-outlined { width: 36px; height: 36px; font-size: 18px; }
    .auth-benefits small { display: block; }
    .auth-card, .auth-register .auth-card { padding: 30px 24px 26px; }
    .auth-card h2 { font-size: 30px; }
    .auth-field-row { grid-template-columns: 1fr; }
    .auth-form-options { align-items: flex-start; flex-direction: column; gap: 10px; }
    .auth-footer-inner { align-items: flex-start; flex-direction: column; gap: 15px; }
    .auth-footer nav { justify-content: flex-start; gap: 14px 19px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
