/* 登录页 —— 借鉴级米映射风格 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(20, 184, 166, .35), transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(99, 102, 241, .4), transparent 55%),
        linear-gradient(135deg, #1e2a5a 0%, #2b3a7a 35%, #3d5a9e 65%, #5b7ec9 100%);
}

/* 顶部导航 */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    height: 64px;
    background: rgba(15, 23, 58, .55);
    backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #14b8a6);
    border-radius: 10px;
    font-weight: 700; font-size: 14px;
}
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: 1px; }
.topnav { display: flex; gap: 36px; }
.topnav a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    font-size: 15px;
    transition: color .2s;
}
.topnav a:hover { color: #fff; }
.topnav a.active { color: #2dd4bf; }

/* 主视觉区 */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 10%;
    gap: 40px;
}
.hero-text h1 {
    font-size: 52px;
    line-height: 1.35;
    letter-spacing: 2px;
    margin-bottom: 28px;
}
.hero-text h1 span {
    background: linear-gradient(90deg, #2dd4bf, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-text p {
    color: rgba(255, 255, 255, .75);
    font-size: 15px;
    line-height: 1.9;
}

/* 登录卡片 */
.login-card {
    width: 400px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 14px;
    padding: 34px 36px 28px;
    color: #333;
    box-shadow: 0 20px 60px rgba(10, 20, 60, .45);
}
.login-card h2 { text-align: center; font-size: 20px; margin-bottom: 18px; }

.tabs {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid #eee;
    margin-bottom: 22px;
}
.tab {
    border: none;
    background: none;
    font-size: 15px;
    padding: 8px 2px 12px;
    cursor: pointer;
    color: #666;
    position: relative;
    font-family: inherit;
}
.tab.active { color: #2563eb; font-weight: 600; }
.tab.active::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -1px;
    transform: translateX(-50%);
    width: 28px; height: 3px;
    border-radius: 2px;
    background: #2563eb;
}

.field {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e2e5ec;
    border-radius: 8px;
    padding: 0 14px;
    margin-bottom: 16px;
    transition: border-color .2s, box-shadow .2s;
}
.field:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}
.field svg { width: 18px; height: 18px; fill: #9aa1b2; flex-shrink: 0; }
.field input, .field-select {
    flex: 1;
    border: none;
    outline: none;
    height: 46px;
    font-size: 14px;
    font-family: inherit;
    background: transparent;
    color: #333;
}

.btn-login {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 16px;
    letter-spacing: 6px;
    cursor: pointer;
    margin-top: 6px;
    transition: opacity .2s, transform .1s;
    font-family: inherit;
}
.btn-login:hover { opacity: .92; }
.btn-login:active { transform: scale(.99); }

.form-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    font-size: 12.5px;
    color: #888;
}
.form-foot a { color: #2563eb; text-decoration: none; }
.agree { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.forgot { cursor: pointer; }

.alert {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    margin-bottom: 16px;
}
.alert.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert.ok    { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

.hidden { display: none; }

.footer {
    text-align: center;
    padding: 18px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .55);
}

@media (max-width: 900px) {
    .hero { flex-direction: column; justify-content: center; }
    .hero-text { text-align: center; }
    .hero-text h1 { font-size: 36px; }
    .topnav { display: none; }
}
