/* ═══════════════════════════════════════════════════════
   Auth polish v9: login + rules
   ═══════════════════════════════════════════════════════ */

body.pilot-auth-layout {
    --auth-font: 'Manrope', system-ui, sans-serif;
    --auth-display: 'Outfit', 'Manrope', system-ui, sans-serif;
    --auth-cyan: #00CFF0;
    --auth-blue: #1A6FE8;
    --auth-ease: cubic-bezier(0.22, 1, 0.36, 1);
    font-family: var(--auth-font);
    background:
        radial-gradient(ellipse 70% 50% at 10% -10%, rgba(26, 111, 232, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 0%, rgba(0, 207, 240, 0.1), transparent 50%),
        #040810;
    -webkit-font-smoothing: antialiased;
}

body.pilot-auth-layout h1,
body.pilot-auth-layout h2,
.pilot-auth-panel__title,
.pilot-auth-card__head h1 {
    font-family: var(--auth-display);
    font-weight: 700;
    letter-spacing: -0.035em;
}

body.pilot-auth-layout .pilot-header {
    background: rgba(4, 8, 16, 0.92);
    border-bottom-color: rgba(125, 211, 252, 0.1);
}

.pilot-auth-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(165deg, rgba(12, 24, 44, 0.95), rgba(6, 12, 24, 0.98)),
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(26, 111, 232, 0.28), transparent 55%);
    border-right: 1px solid rgba(125, 211, 252, 0.12);
}

.pilot-auth-panel__mesh {
    opacity: 0.85;
    background:
        radial-gradient(ellipse 60% 50% at 30% 20%, rgba(26, 111, 232, 0.35), transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(0, 207, 240, 0.18), transparent 55%);
}

.pilot-auth-panel__logo {
    height: 44px;
    padding: 5px 12px;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s var(--auth-ease);
}

.pilot-auth-panel__brand:hover .pilot-auth-panel__logo {
    transform: translateY(-1px);
}

.pilot-auth-panel__title {
    font-size: clamp(1.7rem, 2.8vw, 2.25rem);
    line-height: 1.12;
}

.pilot-auth-panel__lead {
    color: rgba(232, 237, 245, 0.68);
    font-size: 0.95rem;
    line-height: 1.7;
}

.pilot-auth-panel__stats div {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(125, 211, 252, 0.14);
    transition: border-color 0.2s ease, transform 0.25s var(--auth-ease);
}

.pilot-auth-panel__stats div:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 207, 240, 0.35);
}

.pilot-auth-panel__stats strong {
    font-family: var(--auth-display);
    letter-spacing: -0.02em;
}

.pilot-auth-panel__feat {
    border-radius: 12px;
    border-color: rgba(125, 211, 252, 0.12);
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pilot-auth-panel__feat:hover {
    border-color: rgba(0, 207, 240, 0.3);
    background: rgba(0, 207, 240, 0.06);
}

.pilot-auth-panel__feat i {
    color: var(--auth-cyan);
}

/* Cards */
.pilot-auth-card--elevated {
    border-radius: 22px;
    border-color: rgba(125, 211, 252, 0.16);
    background:
        linear-gradient(165deg, rgba(14, 26, 46, 0.96), rgba(8, 14, 28, 0.94));
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pilot-auth-card--elevated::before {
    left: 28px;
    right: 28px;
    height: 2px;
    background: linear-gradient(90deg, #1A6FE8, #00CFF0);
}

.pilot-auth-card__badge {
    background: rgba(0, 207, 240, 0.1);
    border-color: rgba(0, 207, 240, 0.28);
    color: #9ed8f7;
    letter-spacing: 0.12em;
}

.pilot-auth-card__head h1 {
    font-size: clamp(1.55rem, 2.5vw, 1.9rem);
    margin-bottom: 10px;
    color: #fff;
}

.pilot-auth-card__head p {
    color: rgba(232, 237, 245, 0.65);
    font-size: 0.95rem;
    line-height: 1.65;
}

.pilot-auth-card__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 16px;
}

.pilot-auth-card__trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(125, 211, 252, 0.14);
}

.pilot-auth-card__trust span.is-live {
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(16, 185, 129, 0.1);
}

.pilot-auth-card__trust span.is-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    animation: authPulse 2s ease infinite;
}

@keyframes authPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Login form */
.pilot-form--login .pilot-field label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(125, 211, 252, 0.85);
    font-weight: 700;
}

.pilot-form--login .pilot-field__wrap {
    border-radius: 12px;
    border: 1px solid rgba(125, 211, 252, 0.16);
    background: rgba(6, 13, 26, 0.65);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pilot-form--login .pilot-field__wrap:focus-within {
    border-color: rgba(0, 207, 240, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 207, 240, 0.14);
}

.pilot-form--login .pilot-field__icon {
    color: rgba(125, 211, 252, 0.7);
}

.pilot-auth-login-row {
    margin-top: 4px;
}

.pilot-auth-login-row .pilot-link {
    color: #9ed8f7;
    font-weight: 600;
    text-decoration: none;
}

.pilot-auth-login-row .pilot-link:hover {
    color: #fff;
    text-decoration: underline;
}

body.pilot-auth-layout .pilot-btn--glow {
    border-radius: 12px;
    font-family: var(--auth-font);
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 32px rgba(0, 207, 240, 0.28);
    transition: transform 0.25s var(--auth-ease), box-shadow 0.25s var(--auth-ease);
}

body.pilot-auth-layout .pilot-btn--glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 207, 240, 0.38);
}

body.pilot-auth-layout .pilot-btn--ghost {
    border-radius: 12px;
    border-color: rgba(125, 211, 252, 0.22);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s var(--auth-ease);
}

body.pilot-auth-layout .pilot-btn--ghost:hover {
    border-color: rgba(0, 207, 240, 0.45);
    background: rgba(0, 207, 240, 0.08);
    transform: translateY(-1px);
}

body.pilot-auth-layout .pilot-btn--discord,
body.pilot-auth-layout a.pilot-btn--discord {
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #5865F2;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff !important;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
    transition: transform 0.25s var(--auth-ease), filter 0.2s ease, background 0.2s ease;
}

body.pilot-auth-layout .pilot-btn--discord i,
body.pilot-auth-layout a.pilot-btn--discord i {
    color: #fff !important;
    opacity: 1;
}

body.pilot-auth-layout .pilot-btn--discord:hover,
body.pilot-auth-layout a.pilot-btn--discord:hover {
    color: #fff !important;
    background: #4752c4;
    transform: translateY(-2px);
    filter: none;
}

body.pilot-auth-layout .pilot-btn--discord:hover i {
    color: #fff !important;
}

.pilot-auth-divider {
    margin: 22px 0;
}

.pilot-auth-divider span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pilot-auth-alt--login p {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 12px;
}

/* Rules page */
.pilot-auth-card--rules.pilot-auth-card--elevated {
    max-width: 920px;
}

.pilot-auth-card__head--rules {
    text-align: left;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(125, 211, 252, 0.1);
    margin-bottom: 22px;
}

.pilot-auth-card__head--rules h1 {
    font-size: clamp(1.65rem, 2.8vw, 2.1rem);
}

.pilot-auth-rules__stats {
    gap: 10px;
}

.pilot-auth-rules__stat {
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(125, 211, 252, 0.14);
    transition: border-color 0.2s ease, transform 0.25s var(--auth-ease);
}

.pilot-auth-rules__stat:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 207, 240, 0.3);
}

.pilot-auth-rules__stat span {
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.08em;
}

.pilot-auth-rules__stat strong {
    font-family: var(--auth-display);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.pilot-auth-rules__stat--accent {
    border-color: rgba(0, 207, 240, 0.28);
    background: linear-gradient(145deg, rgba(26, 111, 232, 0.16), rgba(0, 207, 240, 0.06));
}

.pilot-auth-rules__notice {
    border-radius: 14px;
    border-color: rgba(125, 211, 252, 0.18);
    background: rgba(26, 111, 232, 0.1);
}

.pilot-auth-rules__highlights {
    margin-top: 8px;
}

.pilot-auth-rules__highlights-title {
    font-family: var(--auth-display);
    letter-spacing: -0.02em;
}

.pilot-auth-rules__highlight {
    border-radius: 14px;
    border: 1px solid rgba(125, 211, 252, 0.14);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, transform 0.25s var(--auth-ease);
}

.pilot-auth-rules__highlight:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 207, 240, 0.32);
}

.pilot-auth-rules__num {
    font-family: var(--auth-display);
    background: linear-gradient(135deg, #1A6FE8, #00CFF0);
}

.pilot-auth-rules__toc {
    gap: 8px;
}

.pilot-auth-rules__toc-link {
    border-radius: 999px;
    border-color: rgba(125, 211, 252, 0.16);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.pilot-auth-rules__toc-link:hover {
    transform: translateY(-1px);
    color: #fff;
    border-color: rgba(0, 207, 240, 0.4);
    background: rgba(0, 207, 240, 0.1);
}

.pilot-auth-rules__doc--scroll {
    border-radius: 16px;
    border: 1px solid rgba(125, 211, 252, 0.12);
    background: rgba(4, 10, 20, 0.45);
    padding: 14px;
}

body.pilot-auth-layout .pilot-auth-rules__doc .pilot-aev-rules-page__section {
    border-radius: 14px;
    border-color: rgba(125, 211, 252, 0.12);
    background: rgba(10, 18, 32, 0.75);
}

body.pilot-auth-layout .pilot-auth-rules__doc .pilot-aev-rules-page__section-head h2 {
    font-family: var(--auth-display);
}

.pilot-auth-rules__accept {
    margin-top: 28px;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(125, 211, 252, 0.16);
    background:
        linear-gradient(160deg, rgba(26, 111, 232, 0.12), rgba(8, 14, 28, 0.9));
}

.pilot-auth-rules__agree {
    color: rgba(232, 237, 245, 0.7);
    font-size: 0.92rem;
    line-height: 1.55;
}

body.pilot-auth-layout .pilot-check--box {
    border-radius: 12px;
    border: 1px solid rgba(125, 211, 252, 0.16);
    background: rgba(6, 13, 26, 0.45);
    padding: 12px 14px;
}

body.pilot-auth-layout .pilot-auth-footer {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.5);
}

body.pilot-auth-layout .pilot-auth-footer a {
    color: #9ed8f7;
    font-weight: 700;
    text-decoration: none;
}

body.pilot-auth-layout .pilot-auth-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .pilot-auth-card--elevated {
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pilot-auth-card__trust span.is-live::before,
    body.pilot-auth-layout .pilot-btn--glow,
    .pilot-auth-rules__stat,
    .pilot-auth-rules__highlight {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
