﻿:root {
    color-scheme: dark;
    font-family: 'Segoe UI', sans-serif;
    background: #03070d;
    color: #e8f2f6;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
.space { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.space::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .4;
    background-image: radial-gradient(1px 1px at 23px 35px, #87aebb 95%, transparent), radial-gradient(1px 1px at 110px 140px, #70bac9 95%, transparent), radial-gradient(1px 1px at 190px 70px, #d0e8f3 95%, transparent);
    background-size: 251px 241px, 389px 331px, 437px 379px;
}
.halo {
    position: absolute;
    width: 950px;
    height: 950px;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, #26566420, transparent 64%);
}
.orbit {
    position: absolute;
    width: 1050px;
    height: 500px;
    left: 50%;
    top: 50%;
    border: 1px solid #75b0c116;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-32deg);
}
.orbit.second { width: 1300px; height: 720px; border-color: #75b0c10c; }
.star {
    position: absolute;
    top: calc(50% - 220px);
    left: calc(50% + 390px);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8acdd6;
    box-shadow: 0 0 15px #73dae859;
}
main { position: relative; display: grid; place-items: center; min-height: 100svh; padding: 30px 20px; }
form {
    position: relative;
    width: 100%;
    max-width: 378px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 205px 31px 23px;
    border: 1px solid #92c0cf36;
    border-radius: 16px;
    background: linear-gradient(155deg, #26353e85, #0c1720ba 35%, #0a1119eb);
    box-shadow: inset 0 1px 0 #d5faff16, inset 0 -1px 0 #0009, 0 30px 100px #0007;
    backdrop-filter: blur(18px);
}
form::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #9ff4ff9c, transparent);
}
form::after {
    content: '';
    position: absolute;
    bottom: -5px;
    width: 34px;
    height: 2px;
    left: calc(50% - 17px);
    border-radius: 2px;
    background: #85e5e8;
    box-shadow: 0 0 13px #73dae85c;
}
.access-planet { position: absolute; top: 0; left: 0; right: 0; height: 198px; pointer-events: none; overflow: hidden; border-radius: 16px 16px 0 0; }
.access-planet canvas { display: block; width: 100%; height: 100%; }
.planet-fallback {
    width: 100px;
    height: 100px;
    position: absolute;
    left: calc(50% - 50px);
    top: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #89b6bb, #20566b 35%, #06111d 78%);
    box-shadow: 0 0 35px #39d5ff12;
}
.is-rendered .planet-fallback { display: none; }
.panel-edge { position: absolute; top: 182px; left: 32px; right: 32px; height: 1px; background: linear-gradient(90deg, transparent, #789dac35, transparent); }
input, button { font: inherit; font-size: 15px; min-height: 51px; border-radius: 7px; }
input {
    width: 100%;
    background: #050d14ac;
    border: 1px solid #6f8e9e3d;
    padding: 0 16px;
    color: #e8f2f6;
    outline: none;
    box-shadow: inset 0 2px 5px #0003;
    transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: #829ba9; }
input:focus { border-color: #7bd5df94; box-shadow: 0 0 0 3px #66e8ed0b; }
input:-webkit-autofill { -webkit-text-fill-color: #e8f2f6; box-shadow: inset 0 0 0 1000px #15232d; caret-color: #e8f2f6; }
button {
    background: linear-gradient(125deg, #28505a, #16353e);
    border: 1px solid #7ce0e774;
    color: #c9fbff;
    font-weight: 500;
    cursor: pointer;
    margin-top: 5px;
    box-shadow: inset 0 1px 0 #d4ffff16, 0 7px 24px #39d5ff08;
    transition: background .2s, box-shadow .2s;
}
button:hover { background: #2c5962; box-shadow: 0 0 22px #39d5ff15; }
a { font-size: 13px; color: #89bcc7; text-decoration: none; align-self: center; padding: 10px; }
a:hover { color: #d1fcff; }
a:focus-visible, button:focus-visible { outline: 2px solid #85eef2; outline-offset: 5px; }
p[role='alert'] { margin: 0; color: #ff8295; font-size: 13px; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media(max-height: 650px) {
    main { padding: 20px; }
    form { padding-top: 155px; }
    .access-planet { height: 147px; }
    .panel-edge { top: 140px; }
}
@media(max-width: 400px) {
    form { padding-inline: 23px; }
}
@media(prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
