/* ============================================
   LaWang 登录/初始化页 - exy 白底极简风格
   参考: exy.jh-xsz.cn/style.css
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #1a1a2e;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 顶部背景光晕（蓝紫渐变） */
body::before {
    content: '';
    position: fixed;
    inset: 0 0 auto 0;
    height: 480px;
    background: radial-gradient(ellipse at top, rgba(85, 81, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* 噪点纹理 */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 1;
}

a {
    color: #5551ff;
    text-decoration: none;
    transition: color .2s;
}
a:hover { color: #8b5cf6; }

/* ============================================
   顶部导航（sticky 透明 + blur）
   ============================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a2e;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: .05em;
}
.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5551ff;
    box-shadow: 0 0 12px rgba(85, 81, 255, .6);
}
.nav-link {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all .2s;
}
.nav-link:hover {
    background: #f5f5fa;
    color: #1a1a2e;
}
.nav-badge {
    font-size: 12px;
    color: #5551ff;
    font-weight: 600;
    background: #f5f3ff;
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid rgba(85, 81, 255, .2);
}

/* ============================================
   主体容器
   ============================================ */
.auth-wrap {
    position: relative;
    z-index: 2;
    max-width: 460px;
    margin: 0 auto;
    padding: 80px 32px 60px;
    text-align: center;
}

/* ============================================
   卡片（白底 + 圆角 + 阴影）
   ============================================ */
.auth-card {
    background: #fff;
    border: 1px solid #f0f0f6;
    border-radius: 18px;
    padding: 48px 40px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .04), 0 12px 48px rgba(85, 81, 255, .06);
    text-align: left;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.auth-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, .06), 0 24px 60px rgba(85, 81, 255, .1);
    transform: translateY(-2px);
}

/* 胶囊徽章 */
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 99px;
    background: #f5f3ff;
    color: #5551ff;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(85, 81, 255, .15);
}
.auth-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

/* 标题 */
.auth-card h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #1a1a2e;
}
.auth-card h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #5551ff 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 副标题 */
.auth-sub {
    font-size: 15px;
    color: #777;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ============================================
   错误提示
   ============================================ */
.auth-error {
    background: #fef2f2;
    border: 1px solid #fde2e2;
    border-left: 3px solid #ef4444;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.auth-error svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================
   提示框
   ============================================ */
.auth-tips {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 3px solid #f59e0b;
    color: #92400e;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 12px;
    line-height: 1.7;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.auth-tips svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================
   表单
   ============================================ */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.field label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: .02em;
}
.field input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e8;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a2e;
    background: #fff;
    transition: all .2s;
}
.field input::placeholder {
    color: #aaa;
}
.field input:focus {
    outline: none;
    border-color: #5551ff;
    background: #fafaff;
    box-shadow: 0 0 0 4px rgba(85, 81, 255, .12);
}
.field input:hover:not(:focus) {
    border-color: #c5c5d8;
}

/* 行：记住我 */
.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}
.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.checkbox .cb-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid #d0d0dc;
    border-radius: 5px;
    background: #fff;
    position: relative;
    transition: all .2s;
}
.checkbox input[type="checkbox"]:checked + .cb-box {
    background: linear-gradient(135deg, #5551ff, #8b5cf6);
    border-color: #5551ff;
}
.checkbox input[type="checkbox"]:checked + .cb-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.checkbox input[type="checkbox"]:focus + .cb-box {
    box-shadow: 0 0 0 4px rgba(85, 81, 255, .12);
}

/* ============================================
   按钮（蓝紫渐变）
   ============================================ */
.btn-fill {
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #5551ff 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(85, 81, 255, .3);
    margin-top: 4px;
}
.btn-fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(85, 81, 255, .4);
}
.btn-fill:active {
    transform: translateY(0);
}
.btn-fill svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   底部说明
   ============================================ */
.auth-foot {
    margin-top: 32px;
    font-size: 12px;
    color: #aaa;
}

/* ============================================
   入场动画
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }
.delay-6 { transition-delay: .6s; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 480px) {
    .nav-inner { padding: 0 20px; }
    .auth-wrap { padding: 60px 20px 40px; }
    .auth-card { padding: 32px 24px 28px; border-radius: 14px; }
    .auth-card h1 { font-size: 24px; }
    .auth-sub { font-size: 14px; margin-bottom: 24px; }
}
