:root { color-scheme: dark; }
* { box-sizing: border-box; }
html { min-width: 320px; background: #08090d; }
body { margin: 0; color: #f5f2ff; background: #08090d; font-family: var(--kufi); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.auth-body { min-height: 100vh; overflow-x: hidden; position: relative; }
.auth-body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, black, transparent 72%); }
.auth-ambient { position: fixed; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: .28; }
.auth-ambient-one { width: 430px; height: 430px; top: -220px; right: 7%; background: #6f4ee8; }
.auth-ambient-two { width: 360px; height: 360px; bottom: -210px; left: 6%; background: #c84d9b; opacity: .14; }
.auth-header { width: min(1180px, calc(100% - 48px)); height: 76px; margin: 18px auto 0; padding: 0 16px 0 20px; position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,255,.09); border-radius: 20px; background: rgba(10,10,15,.72); box-shadow: 0 22px 60px rgba(0,0,0,.22); backdrop-filter: blur(20px); }
.auth-logo { width: 180px; display: block; }
.auth-logo img { width: 100%; display: block; }
.auth-header-actions { display: flex; align-items: center; gap: 12px; }
.back-home { height: 42px; padding: 0 16px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: #c6c2d1; font-size: 12px; transition: .2s ease; }
.back-home:hover { color: white; border-color: rgba(144,116,255,.48); background: rgba(124,92,239,.08); }
.back-home b { color: #a88eff; }
.auth-shell { width: min(1180px, calc(100% - 48px)); min-height: calc(100vh - 112px); margin: 0 auto; padding: 54px 0 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(410px, 470px); gap: clamp(56px, 7vw, 105px); align-items: center; position: relative; z-index: 2; }
[dir="ltr"] .auth-shell { grid-template-columns: minmax(410px, 470px) minmax(0, 1fr); }
[dir="ltr"] .auth-story { order: 2; }
[dir="ltr"] .auth-card { order: 1; }
.auth-story { padding-inline: 8px; }
.story-kicker { display: inline-flex; align-items: center; gap: 9px; color: #b5a6f8; font-size: 12px; }
.story-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #9d78ff; box-shadow: 0 0 18px #9d78ff; }
.auth-story h1 { max-width: 650px; margin: 20px 0 22px; font-size: clamp(44px, 4.7vw, 68px); line-height: 1.3; letter-spacing: -.04em; }
.auth-story h1 span, .auth-story h1 em { display: block; font-style: normal; }
.auth-story h1 em { color: transparent; background: linear-gradient(90deg,#a486ff,#ee83bf); background-clip: text; -webkit-background-clip: text; }
.auth-story > p { max-width: 610px; margin: 0; color: #a5a1ae; font-size: 14px; line-height: 2; }
.story-points { margin-top: 32px; display: grid; gap: 16px; }
.story-points > div { display: flex; align-items: center; gap: 14px; }
.story-points > div > span { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 1px solid rgba(149,119,255,.25); border-radius: 12px; background: rgba(126,87,239,.08); color: #b6a2ff; }
.story-points p { margin: 0; display: grid; gap: 3px; }
.story-points b { font-size: 13px; color: #dedbe7; }
.story-points small { font-size: 11px; color: #74717d; line-height: 1.7; }
.story-preview { width: min(570px, 100%); height: 155px; margin-top: 34px; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; background: rgba(14,15,22,.7); transform: perspective(750px) rotateX(5deg); box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.preview-top { height: 18px; display: flex; gap: 5px; direction: ltr; }
.preview-top i { width: 5px; height: 5px; border-radius: 50%; background: #403d49; }
.preview-stage { height: 55px; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 8px; background: radial-gradient(circle, rgba(114,76,212,.24), transparent 65%); }
.preview-stage span { width: 32px; height: 45px; border-radius: 4px; background: linear-gradient(160deg,#4b2874,#742b5e); }
.preview-stage b { width: 12px; height: 2px; position: absolute; background: #e06eb6; }
.preview-tracks { height: 42px; margin-top: 8px; padding: 7px 9px; display: grid; gap: 5px; border-radius: 8px; background: #0c0d12; }
.preview-tracks i { height: 6px; border-radius: 3px; background: #372463; }
.preview-tracks i:nth-child(2) { width: 70%; background: #153d43; }
.preview-tracks i:nth-child(3) { width: 45%; background: #4a2440; }
.auth-card { padding: 34px; border: 1px solid rgba(255,255,255,.1); border-radius: 26px; background: linear-gradient(145deg,rgba(19,19,27,.96),rgba(11,12,17,.96)); box-shadow: 0 35px 100px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.025); }
.auth-card-heading > span { color: #9f85f5; font-size: 11px; font-weight: 700; }
.auth-card-heading h2 { margin: 9px 0 8px; font-size: 30px; line-height: 1.5; }
.auth-card-heading p { margin: 0; color: #85818f; font-size: 12px; line-height: 1.8; }
.auth-message { margin-top: 18px; padding: 12px 14px; display: grid; gap: 5px; border-radius: 12px; font-size: 11px; line-height: 1.8; }
.auth-message.error { color: #ffb5c6; border: 1px solid rgba(255,91,128,.24); background: rgba(153,34,62,.12); }
.auth-message.notice { color: #d7ccff; border: 1px solid rgba(139,104,255,.22); background: rgba(117,80,232,.1); }
.auth-tabs { margin: 24px 0 16px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; background: #0b0c11; }
.auth-tabs button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: #787580; cursor: pointer; font-size: 12px; transition: .2s ease; }
.auth-tabs button.active { color: #f3f0fb; background: #1a1922; box-shadow: inset 0 0 0 1px rgba(255,255,255,.055); }
.google-button { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(255,255,255,.035); color: #eeebf4; font-size: 12px; transition: .2s ease; }
.google-button:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); transform: translateY(-1px); }
.google-mark { width: 18px; height: 18px; position: relative; display: block; border-radius: 50%; background: conic-gradient(from -40deg,#4285f4 0 25%,#34a853 0 45%,#fbbc05 0 68%,#ea4335 0 86%,#4285f4 0); }
.google-mark::after { content: ""; width: 9px; height: 9px; position: absolute; inset: 4.5px; border-radius: 50%; background: #15151d; }
.google-mark::before { content: ""; width: 8px; height: 4px; position: absolute; z-index: 2; right: 0; top: 7px; background: #4285f4; }
.auth-divider { margin: 18px 0; display: flex; align-items: center; gap: 12px; color: #5f5c67; font-size: 10px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: rgba(255,255,255,.07); }
.auth-form { display: none; gap: 15px; }
.auth-form.active { display: grid; }
.auth-form > label { display: grid; gap: 8px; color: #b9b5c2; font-size: 11px; }
.auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="text"] { width: 100%; height: 47px; padding: 0 14px; border: 1px solid rgba(255,255,255,.09); outline: 0; border-radius: 12px; background: #0b0c11; color: #f6f3ff; font-family: Arial, var(--kufi), sans-serif; font-size: 13px; text-align: start; transition: .2s ease; }
.auth-form input:focus { border-color: #785be0; box-shadow: 0 0 0 3px rgba(120,91,224,.1); }
.auth-form input::placeholder { color: #4d4b55; }
.password-field { position: relative; }
.password-field input { padding-inline-end: 46px !important; }
.password-field button { width: 38px; height: 38px; position: absolute; top: 5px; inset-inline-end: 5px; border: 0; border-radius: 9px; background: transparent; color: #5c5965; cursor: pointer; }
.password-field button.visible { color: #a993ff; }
.form-meta { display: flex; align-items: center; justify-content: space-between; color: #77737f; font-size: 10px; }
.form-meta > a { color: #9d88ef; }
.remember { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.remember input { accent-color: #795ee0; }
.submit-button { min-height: 50px; margin-top: 2px; padding: 0 17px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 0; border-radius: 13px; background: linear-gradient(120deg,#684de4,#9b59eb); color: white; box-shadow: 0 16px 38px rgba(100,69,220,.25); cursor: pointer; font-size: 12px; font-weight: 700; transition: .2s ease; }
.submit-button:hover { transform: translateY(-1px); box-shadow: 0 20px 46px rgba(100,69,220,.34); }
.terms { margin: -2px 0 0; color: #66636e; font-size: 9px; line-height: 1.8; }
.terms a{color:#c1abf7;text-decoration:underline;text-underline-offset:3px}
.turnstile-shell { min-width: 0; padding: 10px; display: grid; gap: 7px; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; background: #0a0b10; overflow: hidden; }
.turnstile-shell > div { min-height: 65px; }
.turnstile-shell iframe { max-width: 100%; }
.turnstile-shell small { color: #66636e; font-size: 8px; text-align: center; }
.guest-entry { min-height: 44px; margin: 0 0 14px; padding: 8px 13px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(148,119,255,.23); border-radius: 11px; background: rgba(119,88,236,.08); color: #c9b8ff; font-size: 12px; font-weight: 700; text-align: center; transition: border-color .2s ease, background .2s ease; }
.guest-entry:hover { border-color: rgba(148,119,255,.45); background: rgba(119,88,236,.16); }
@media (max-width: 980px) {
    .auth-shell { grid-template-columns: 1fr; width: min(560px, calc(100% - 36px)); min-height: 0; gap: 0; padding-top: 24px; align-items: start; }
    [dir="ltr"] .auth-shell { grid-template-columns: minmax(0, 1fr); }
    .auth-story { display: none; }
    .auth-card { min-width: 0; }
    [dir="ltr"] .auth-card { order: initial; }
}
@media (max-width: 620px) {
    .auth-header { width: calc(100% - 24px); height: 68px; margin-top: 12px; padding: 0 12px; }
    .auth-logo { width: 145px; }
    .back-home span { display: none; }
    .back-home { width: 40px; padding: 0; justify-content: center; }
    .auth-shell { width: calc(100% - 24px); padding: 16px 0 30px; }
    .auth-card { padding: 20px 18px; border-radius: 17px; }
    .auth-card-heading > span { display: none; }
    .auth-card-heading h2 { margin: 0 0 4px; font-size: 22px; line-height: 1.4; }
    .auth-card-heading p { font-size: 11px; line-height: 1.6; }
    .auth-tabs { margin: 16px 0 10px; }
    .guest-entry { margin-bottom: 11px; }
}
