:root {
  color-scheme: dark;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background: #090815;
  color: #f7f4ff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(ellipse at 50% 42%, #211745 0, #100e21 42%, #090815 76%); }
.shell { display: flex; min-height: 100vh; flex-direction: column; padding: 26px clamp(20px, 6vw, 88px) 18px; }
.topbar, footer { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; font-size: 18px; font-weight: 600; text-decoration: none; direction: ltr; }
.brand b { color: #bba5ff; font-weight: 500; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #aa8cff88; border-radius: 12px; background: linear-gradient(145deg, #a783ff, #6548cc); box-shadow: 0 0 25px #9870ff4d; font-size: 19px; }
.secure { display: flex; align-items: center; gap: 8px; color: #c1bbd4; font-size: 13px; }
.secure span, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #72e2ba; box-shadow: 0 0 12px #72e2ba99; }
.hero { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 42px 0 58px; text-align: center; }
.moon { position: relative; width: 116px; height: 116px; margin-bottom: 32px; overflow: hidden; border: 1px solid #c3adff55; border-radius: 50%; background: radial-gradient(circle at 34% 32%, #e8ddff, #a989fc 38%, #7457c9 72%, #382764); box-shadow: 0 0 70px #9d79ff39, inset -14px -12px 28px #291b50; }
.moon::after { position: absolute; top: -10px; right: -19px; width: 108px; height: 108px; border-radius: 50%; background: #17122b; content: ''; }
.moon span { position: absolute; z-index: 1; bottom: 24px; left: 28px; width: 8px; height: 8px; border-radius: 50%; background: #f2eaff; box-shadow: 30px -42px #f2eaffaa, 52px 6px #f2eaff77; }
.eyebrow { margin: 0 0 13px; color: #ba9eff; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
h1 { margin: 0; font-size: clamp(30px, 5vw, 52px); font-weight: 600; line-height: 1.35; }
h1 span { color: #c0aaff; direction: ltr; unicode-bidi: isolate; }
.intro { max-width: 520px; margin: 17px auto 0; color: #b8b3c9; font-size: clamp(15px, 2vw, 17px); line-height: 1.9; }
.status-card { display: flex; align-items: center; gap: 11px; margin-top: 32px; padding: 13px 18px; border: 1px solid #ffffff16; border-radius: 14px; background: #ffffff08; color: #e6e0f2; font-size: 14px; }
.footnote { margin: 17px 0 0; color: #837c99; font-size: 12px; }
footer { border-top: 1px solid #ffffff14; padding-top: 15px; color: #716b83; font-size: 11px; }
@media (max-width: 480px) { .shell { padding-top: 19px; } .moon { width: 96px; height: 96px; margin-bottom: 27px; } .moon::after { width: 90px; height: 90px; } }

.primary-link, .primary-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; margin-top: 25px; padding: 0 25px; border: 1px solid #b49aff88; border-radius: 13px; background: linear-gradient(110deg, #815de2, #6847c4); box-shadow: 0 10px 35px #7452d333; color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .18s ease, filter .18s ease; }
.primary-link:hover, .primary-button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.auth-shell { display: flex; min-height: 100vh; flex-direction: column; padding: 26px clamp(20px, 6vw, 88px) 18px; }
.auth-card { width: min(100%, 460px); margin: auto; padding: clamp(25px, 6vw, 46px); border: 1px solid #ffffff17; border-radius: 24px; background: linear-gradient(145deg, #171329eF, #100e1ceF); box-shadow: 0 25px 90px #0005, inset 0 1px #ffffff08; text-align: center; }
.auth-card .moon { width: 76px; height: 76px; margin: 0 auto 23px; }
.auth-card .moon::after { width: 70px; height: 70px; }
.auth-card h1 { font-size: clamp(26px, 5vw, 34px); }
.auth-description { margin: 10px 0 25px; color: #b8b3c9; line-height: 1.8; }
.google-button-wrap { display: flex; min-height: 48px; justify-content: center; }
.google-button-wrap iframe { max-width: 100%; }
.native-google-button { display: none; width: 100%; min-height: 50px; align-items: center; justify-content: center; gap: 12px; border: 1px solid #ffffff2b; border-radius: 12px; background: #fff; color: #27232f; font: inherit; font-weight: 600; cursor: pointer; }
.native-google-button .google-g { font-family: Arial, sans-serif; font-size: 23px; font-weight: 700; background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0); color: transparent; background-clip: text; }
.auth-error { margin: 15px 0 0; color: #ff9baf; font-size: 13px; line-height: 1.7; }
.auth-hint { margin-top: 22px; color: #847d99; font-size: 12px; line-height: 1.7; }
.back-link { display: inline-block; margin-top: 19px; color: #c4adff; font-size: 13px; text-decoration: none; }
.field { margin: 17px 0; text-align: right; }
.field label, .field legend { display: block; margin-bottom: 8px; color: #e7e1f3; font-size: 13px; font-weight: 500; }
.field input, .field select { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #ffffff22; border-radius: 11px; outline: none; background: #0d0b18; color: #f7f4ff; font: inherit; }
.field input:focus, .field select:focus { border-color: #a88aff; box-shadow: 0 0 0 3px #9674ff26; }
.field input[type="file"] { padding: 8px; color: #b8b3c9; font-size: 12px; }
.field input[type="date"] { color-scheme: dark; }
.radio-row { display: flex; gap: 12px; }
.radio-option { display: flex; min-height: 43px; flex: 1; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #ffffff22; border-radius: 11px; color: #d9d3e6; }
.radio-option input { width: auto; min-height: auto; accent-color: #9c7bff; }
.form-submit { width: 100%; margin-top: 12px; }
.form-note { margin: 14px 0 0; color: #938ca7; font-size: 11px; line-height: 1.7; }
.profile-avatar { width: 78px; height: 78px; border: 2px solid #a98aff; border-radius: 50%; object-fit: cover; background: #211a35; }
.profile-card { width: min(100%, 560px); }
.profile-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 25px; text-align: right; }
.profile-detail { padding: 14px; border: 1px solid #ffffff15; border-radius: 12px; background: #ffffff06; }
.profile-detail small { display: block; margin-bottom: 6px; color: #958da9; }
.profile-detail strong { color: #eee9f8; font-size: 14px; }
.logout-button { border-color: #ffffff2b; background: #ffffff08; box-shadow: none; }
@media (max-width: 480px) { .auth-shell { padding-top: 19px; } .auth-card { border-radius: 19px; } .profile-details { grid-template-columns: 1fr 1fr; } }
