@charset "utf-8";

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.auth-page {
    min-height: 100vh;
    font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #11162b;
    background: linear-gradient(180deg, #f5f8ff 0%, #eef3ff 48%, #f8faff 100%);
    -webkit-font-smoothing: antialiased;
}

a {
    color: #4361ee;
    text-decoration: none;
}

a:hover {
    color: #3a0ca3;
}

img {
    max-width: 100%;
}

.auth-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    animation: authOrb 16s ease-in-out infinite;
}

.auth-orb-1 {
    width: 420px;
    height: 420px;
    background: #93c5fd;
    opacity: 0.45;
    top: -120px;
    right: 8%;
}

.auth-orb-2 {
    width: 320px;
    height: 320px;
    background: #c4b5fd;
    opacity: 0.38;
    bottom: -80px;
    left: -40px;
    animation-duration: 20s;
}

.auth-orb-3 {
    width: 180px;
    height: 180px;
    background: #7dd3fc;
    opacity: 0.35;
    top: 42%;
    left: 38%;
    animation-duration: 12s;
}

@keyframes authOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, -28px) scale(1.06); }
}

.auth-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(67, 97, 238, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 97, 238, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
    mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
}

.auth-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px 24px 0;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #11162b;
    font-weight: 700;
}

.auth-logo img {
    height: 36px;
    display: block;
}

.auth-logo span {
    font-size: 0.95rem;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(67, 97, 238, 0.12);
    color: #6b7280;
    font-size: 0.86rem;
    font-weight: 500;
}

.auth-back:hover {
    color: #4361ee;
    background: #fff;
}

.auth-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 20px 48px;
    min-height: calc(100vh - 88px);
}

.auth-shell {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(67, 97, 238, 0.1);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(67, 97, 238, 0.1);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.auth-brand {
    padding: 48px 40px;
    background: linear-gradient(160deg, rgba(67, 97, 238, 0.1) 0%, rgba(124, 58, 237, 0.08) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(67, 97, 238, 0.14);
    color: #4361ee;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.auth-brand-badge i {
    font-size: 0.7rem;
}

.auth-brand h1 {
    margin: 0 0 14px;
    font-size: 1.85rem;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-brand p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.8;
}

.auth-brand-list {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.auth-brand-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4b5563;
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.auth-brand-list i {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #4361ee;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.auth-card {
    padding: 40px 42px 36px;
    background: #fff;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    padding: 4px;
    background: #f4f6fb;
    border-radius: 12px;
}

.auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #6b7280;
}

.auth-tabs a.active {
    background: #fff;
    color: #4361ee;
    box-shadow: 0 4px 14px rgba(67, 97, 238, 0.12);
}

.auth-card-title {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
}

.auth-card-desc {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 0.88rem;
}

.auth-error,
.e_login_error {
    min-height: 0;
    margin: 0 0 14px;
    color: #e11d48;
    font-size: 0.85rem;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #374151;
}

.auth-input,
.auth-field input[type="text"],
.auth-field input[type="password"],
.auth-field input[type="email"] {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #fafbfc;
    color: #11162b;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
    z-index: 1;
}

.auth-input:focus,
.auth-field input:focus {
    border-color: #4361ee;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.auth-tip {
    display: block;
    min-height: 1.1em;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #9ca3af;
}

.auth-captcha {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.auth-captcha img {
    height: 48px;
    width: 118px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    background: #fff;
}

.auth-captcha-refresh {
    font-size: 0.78rem;
    color: #6b7280;
    white-space: nowrap;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 18px;
    font-size: 0.84rem;
}

.auth-row a {
    color: #6b7280;
}

.auth-row a:hover {
    color: #4361ee;
}

.auth-submit,
.auth-card button[type="submit"],
.auth-card input[type="submit"] {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(67, 97, 238, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover,
.auth-card button[type="submit"]:hover,
.auth-card input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(67, 97, 238, 0.36);
}

.auth-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0 0;
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.6;
}

.auth-agree input {
    margin-top: 3px;
}

.auth-footer {
    position: relative;
    z-index: 1;
    padding: 0 24px 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.78rem;
}

.rank {
    height: 4px;
    margin-top: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    overflow: hidden;
}

.rank.r1 { background: linear-gradient(90deg, #ef4444 20%, #e5e7eb 20%); }
.rank.r2 { background: linear-gradient(90deg, #f97316 35%, #e5e7eb 35%); }
.rank.r3 { background: linear-gradient(90deg, #eab308 50%, #e5e7eb 50%); }
.rank.r4 { background: linear-gradient(90deg, #84cc16 65%, #e5e7eb 65%); }
.rank.r5,
.rank.r6,
.rank.r7 { background: linear-gradient(90deg, #22c55e 85%, #e5e7eb 85%); }

@media (max-width: 899.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .auth-brand {
        display: none;
    }

    .auth-card {
        padding: 28px 22px 24px;
    }
}

@media (max-width: 575.98px) {
    .auth-header {
        padding: 16px 16px 0;
    }

    .auth-main {
        padding: 20px 12px 32px;
        min-height: calc(100vh - 72px);
    }

    .auth-captcha {
        grid-template-columns: 1fr;
    }

    .auth-captcha img {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-orb {
        animation: none;
    }
}
