*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100dvh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #dcddde;
    background: #111111;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.auth-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 18% 12%, rgba(127, 109, 242, 0.22), transparent 58%),
        radial-gradient(700px 480px at 88% 80%, rgba(45, 212, 191, 0.1), transparent 55%),
        #111111;
}

.auth-scene__graph {
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

.auth-scene__veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(17, 17, 17, 0.15), rgba(17, 17, 17, 0.72) 70%),
        linear-gradient(180deg, rgba(17, 17, 17, 0.2), rgba(17, 17, 17, 0.55));
}

.auth-scene__node {
    stroke-width: 1.4;
    animation: auth-float 9s var(--rv-ease, cubic-bezier(0.22, 1, 0.36, 1)) infinite;
}

.auth-scene__node--delay {
    animation-delay: -3.4s;
}

.auth-scene__cable {
    stroke-dasharray: 8 10;
    animation: auth-dash 18s linear infinite;
}

.auth-scene__cable--slow {
    animation-duration: 28s;
    animation-direction: reverse;
}

@keyframes auth-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes auth-dash {
    to { stroke-dashoffset: -240; }
}

.auth-layout {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 80px;
}

.auth-card {
    width: min(400px, 100%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 24px;
    background: rgba(30, 30, 30, 0.88);
    border: 1px solid #404040;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(127, 109, 242, 0.12);
    backdrop-filter: blur(18px);
}

.auth-card .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.04em;
}

.auth-card .logo img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(127, 109, 242, 0.4);
}

.auth-card h1,
.auth-card h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.04em;
}

.auth-card .sub-text,
.form-description,
.brand-desc,
.brand-tagline {
    margin: 0;
    color: #999;
    font-size: 13px;
    line-height: 1.5;
}

.login-form,
.form-wrapper,
.forgot-password-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: #999;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    height: 36px;
    border: 1px solid #404040;
    border-radius: 6px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 13px;
    color: #dcddde;
    background: #161616;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #7f6df2;
    box-shadow: 0 0 0 3px rgba(127, 109, 242, 0.28);
}

button[type="submit"] {
    width: 100%;
    height: 36px;
    background: #7f6df2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button[type="submit"]:hover {
    background: #9486f5;
}

.form-footer {
    text-align: center;
    font-size: 13px;
    color: #666;
}

.form-footer a,
.back-link {
    color: #9486f5;
    text-decoration: none;
}

.form-footer a:hover { text-decoration: underline; }

.rv-account-embed {
    border-radius: 8px !important;
}

.auth-brand-panel,
.auth-layout-brand,
.auth-layout__brand-panel {
    display: none;
}

.public-home {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 40px 20px;
}

.public-home .display-title {
    font-size: 48px;
    font-weight: 650;
    letter-spacing: -0.06em;
    margin: 0;
}

.public-home .subtitle {
    color: #999;
    margin: 0 0 8px;
    max-width: 420px;
    line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
    .auth-scene__node,
    .auth-scene__cable {
        animation: none;
    }
}
