/* ============================================================
   Auth 视觉系统（登录 / 注册 共用）— 紫韵轻奢版 V6.1
   仅样式层，所有类名与旧版一致，不影响任何 JS / 表单钩子
   设计语言：薰衣草纸底 + 深紫主色 + 浅紫点缀
   ============================================================ */
:root {
    --primary: #5b21b6;
    --primary-dark: #4c1d95;
    --primary-light: #7c3aed;
    --secondary: #5b21b6;
    --secondary-dark: #4c1d95;
    --accent: #8b5cf6;
    --accent-light: #c4b5fd;
    --paper: #f6f4fb;
    --surface: #fdfcff;
    --text-primary: #221a35;
    --text-secondary: #6f6885;
    --line: #e6e1f2;
    --ring: rgba(91, 33, 182, 0.16);
    --card-radius: 22px;
    --shadow-lg: 0 24px 60px rgba(34, 26, 53, 0.18);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body { height: 100%; }

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: var(--paper);
    background-image:
        radial-gradient(900px 620px at 8% -8%, rgba(91, 33, 182, 0.16) 0%, rgba(91,33,182,0) 55%),
        radial-gradient(820px 560px at 104% 6%, rgba(139, 92, 246, 0.20) 0%, rgba(139,92,246,0) 52%),
        radial-gradient(760px 760px at 50% 118%, rgba(91, 33, 182, 0.10) 0%, rgba(91,33,182,0) 55%);
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
    color: var(--text-primary);
}

/* 纸面细金线装饰（纯 CSS，不改 markup） */
body::before {
    content: "";
    position: fixed;
    left: 0; right: 0; top: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.35), transparent);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: "";
    position: fixed;
    left: 0; right: 0; bottom: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91,33,182,0.25), transparent);
    pointer-events: none;
    z-index: 0;
}

.page-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-section {
    text-align: center;
    margin-bottom: 24px;
}

.logo-icon {
    width: 84px;
    height: 84px;
    background: linear-gradient(145deg, var(--primary-light), var(--primary-dark));
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 16px 36px rgba(76, 29, 149, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    position: relative;
    animation: logoFloat 4.5s ease-in-out infinite;
}
/* 鎏金描边外框 */
.logo-icon::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 31px;
    border: 1px solid rgba(139, 92, 246, 0.55);
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-2deg); }
}
.logo-icon i {
    font-size: 40px;
    color: #ede9fe;
    text-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.page-title {
    color: var(--primary-dark);
    font-size: 29px;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: 2px;
}
.page-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
    font-weight: 500;
    letter-spacing: 4px;
}

.auth-card {
    background: var(--surface);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}
/* 卡片顶部鎏金线 */
.auth-card::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
}

/* 分段式标签 */
.nav-tabs {
    border-bottom: 1px solid var(--line);
    padding: 12px 14px 0;
    margin: 0;
    background: #f7f5fd;
    gap: 6px;
}
.nav-tabs .nav-item { flex: 1; }
.nav-link {
    border: none !important;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 12px 12px 0 0 !important;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 18px;
    transition: all 0.25s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    position: relative;
}
.nav-link:hover {
    color: var(--primary);
    background: rgba(91, 33, 182, 0.06);
}
.nav-link.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: none;
}
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 24%; right: 24%; bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.tab-content { padding: 30px 26px 26px; }

.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.input-wrapper { position: relative; }
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 19px;
    color: var(--accent);
    z-index: 2;
    transition: color 0.25s;
}
.input-wrapper:focus-within .input-icon { color: var(--primary); }

.form-control {
    width: 100%;
    padding: 14px 16px 14px 50px;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: #faf9fe;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.25s;
}
.form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--ring);
    outline: none;
}
.form-control::placeholder { color: #a99fc4; }

/* 头像上传 */
.upload-box {
    border: 1.5px dashed #cfc4e8;
    border-radius: 18px;
    padding: 26px 20px;
    text-align: center;
    cursor: pointer;
    background: #faf9fe;
    position: relative;
    transition: all 0.25s;
    display: block;
    margin: 0;
}
.upload-box:hover {
    border-color: var(--primary);
    background: rgba(91, 33, 182, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(91,33,182,0.12);
}
.preview-img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: none;
    border: 3px solid var(--primary);
    box-shadow: 0 6px 18px rgba(91, 33, 182, 0.3);
}
.upload-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.35);
}
.upload-icon i { font-size: 27px; color: #ede9fe; }
.upload-text { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.upload-text strong { color: var(--accent); font-weight: 800; }

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 16px;
    border: none;
    margin-top: 10px;
    letter-spacing: 1px;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s, filter 0.25s;
    position: relative;
    overflow: hidden;
}
.btn-submit::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s;
}
.btn-submit:hover::after { transform: translateX(120%); }
.btn-login {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #f3efff;
    box-shadow: 0 10px 24px rgba(91, 33, 182, 0.38);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(91, 33, 182, 0.48); color:#fff; }
.btn-login:active { transform: translateY(0) scale(0.99); }
.btn-register {
    background: linear-gradient(135deg, var(--accent), #b0741d);
    color: #fff8ea;
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.42);
}
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(139, 92, 246, 0.52); color:#fff; }
.btn-register:active { transform: translateY(0) scale(0.99); }
.btn-submit:disabled { filter: saturate(0.6) brightness(0.98); opacity: 0.85; transform: none; }

/* 悬浮查询按钮 */
.float-check-btn {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 22px;
    background: var(--primary-dark);
    border-radius: 999px;
    padding: 13px 26px;
    color: #ede9fe;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(139, 92, 246, 0.55);
    box-shadow: 0 10px 30px rgba(76, 29, 149, 0.4);
    animation: floatHint 3.4s ease-in-out infinite;
}
@keyframes floatHint {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}
.float-check-btn:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 14px 40px rgba(76, 29, 149, 0.5);
    background: var(--primary);
}
.float-check-btn i { font-size: 17px; color: var(--accent-light); }

/* 弹窗 */
.modal-content {
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 70px rgba(35,32,26,0.28);
    overflow: hidden;
    background: var(--surface);
}
.modal-header {
    background: linear-gradient(135deg, #f7f5fd, #f1ecfc);
    border-bottom: 1px solid var(--line);
    padding: 18px 22px;
}
.modal-title { font-weight: 800; color: var(--primary-dark); font-size: 17px; }
.modal-body { padding: 26px 22px 18px; }
.modal-footer { border-top: 1px solid var(--line); padding: 14px 22px 22px; }
.btn-modal-close {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #f3efff;
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.32);
    transition: all 0.25s;
}
.btn-modal-close:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(91, 33, 182, 0.42); color: #fff; }

/* 弹窗内查询结果列表微调 */
#statusModalBody .list-group { border: 1px solid var(--line); }
#statusModalBody .list-group-item { border-color: #efe9db; }

@media (max-width: 380px) {
    .page-title { font-size: 25px; letter-spacing: 1px; }
    .tab-content { padding: 24px 18px 20px; }
    .logo-icon { width: 74px; height: 74px; }
}
