:root {
    --auth-bg: #05070f;
    --auth-panel: #0c1120;
    --auth-line: rgba(255, 255, 255, 0.09);
    --auth-line-strong: rgba(255, 255, 255, 0.16);
    --auth-text: #eef1f8;
    --auth-muted: #98a2b8;
    --auth-indigo: #7b78ff;
    --auth-indigo-2: #9a97ff;
}

.auth-page {
    min-height: 100vh;
    margin: 0;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before,
.auth-page::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.auth-page::before {
    width: 620px;
    height: 620px;
    top: -260px;
    left: 50%;
    transform: translateX(-70%);
    background: rgba(99, 91, 255, 0.22);
}

.auth-page::after {
    width: 520px;
    height: 520px;
    bottom: -280px;
    right: -120px;
    background: rgba(34, 211, 238, 0.10);
}

.auth-page .auth-shell {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-page .auth-home {
    align-self: flex-start;
    color: var(--auth-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.16s ease;
}

.auth-page .auth-home:hover { color: var(--auth-text); }

.auth-page .auth-card {
    background: linear-gradient(180deg, rgba(17, 24, 41, 0.96), rgba(10, 14, 26, 0.98));
    border: 1px solid var(--auth-line);
    border-radius: 22px;
    padding: 38px 36px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: var(--auth-text);
}

.auth-page .auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--auth-text);
    margin-bottom: 28px;
}

.auth-page .auth-brand .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 1rem;
    box-shadow: 0 10px 26px rgba(99, 91, 255, 0.35);
}

.auth-page .auth-brand b {
    display: block;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.auth-page .auth-brand small {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    color: var(--auth-muted);
    font-weight: 600;
    margin-top: 3px;
}

.auth-page .auth-title {
    margin: 0 0 6px;
    font-size: 1.65rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-weight: 700;
    color: var(--auth-text);
}

.auth-page .auth-sub {
    margin: 0 0 28px;
    color: var(--auth-muted);
    font-size: 0.95rem;
}

.auth-page .auth-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #c7cde0;
    margin-bottom: 7px;
}

.auth-page .auth-input {
    width: 100%;
    height: 46px;
    border-radius: 11px;
    border: 1px solid var(--auth-line-strong);
    background: #080d19;
    color: var(--auth-text);
    font-size: 0.95rem;
    padding: 0 14px;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-page .auth-input::placeholder { color: #5f6981; }

.auth-page .auth-input:focus {
    border-color: var(--auth-indigo);
    box-shadow: 0 0 0 3px rgba(123, 120, 255, 0.18);
}

.auth-page .auth-error {
    display: block;
    margin-top: 6px;
    color: #fb7185;
    font-size: 0.78rem;
    min-height: 0;
}

.auth-page .validation-summary-errors {
    background: rgba(251, 113, 133, 0.08);
    border: 1px solid rgba(251, 113, 133, 0.28);
    color: #fda4af;
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 0.84rem;
    margin-bottom: 18px;
}

.auth-page .validation-summary-errors ul { margin: 0; padding-left: 18px; }

.auth-page .auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 22px;
}

.auth-page .auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--auth-muted);
    cursor: pointer;
    margin: 0;
}

.auth-page .auth-check input {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--auth-line-strong);
    border-radius: 4px;
    background: #080d19;
    position: relative;
    cursor: pointer;
    accent-color: var(--auth-indigo);
}

.auth-page .auth-check input:checked {
    background: var(--auth-indigo);
    border-color: var(--auth-indigo);
}

.auth-page .auth-check input:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth-page .auth-btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(180deg, var(--auth-indigo-2), var(--auth-indigo));
    color: #fff;
    font-size: 0.96rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(99, 91, 255, 0.32);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.auth-page .auth-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 16px 36px rgba(99, 91, 255, 0.42);
}

.auth-page .auth-btn:active { transform: translateY(1px); }

.auth-page .auth-sep {
    height: 1px;
    background: var(--auth-line);
    margin: 26px 0 18px;
}

.auth-page .auth-note {
    margin: 0;
    text-align: center;
    color: var(--auth-muted);
    font-size: 0.84rem;
}

.auth-page .auth-note a {
    color: var(--auth-indigo-2);
    text-decoration: none;
    font-weight: 600;
}

.auth-page .auth-note a:hover { text-decoration: underline; }

.auth-page .auth-foot {
    margin: 0;
    text-align: center;
    color: #6f7890;
    font-size: 0.76rem;
    letter-spacing: 0.01em;
}

.auth-page .text-body-secondary { color: var(--auth-muted) !important; }
.auth-page .display-4 { color: var(--auth-text); font-weight: 700; }

@media (max-width: 480px) {
    .auth-page { padding: 24px 14px; }
    .auth-page .auth-card { padding: 28px 22px 24px; border-radius: 18px; }
    .auth-page .auth-title { font-size: 1.45rem; }
}
