/* ============================================================
   login.css —— 登录页专属样式
   ============================================================ */
.login-main {
    flex: 1;
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 90px;
    padding: 30px 60px;
    /* 淡淡的网格背景，增加层次但不花哨 */
    background-image:
        linear-gradient(rgba(47, 107, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 107, 255, .045) 1px, transparent 1px);
    background-size: 34px 34px;
}

/* ---------- 左侧品牌宣传区 ---------- */
.hero { max-width: 560px; }

.hero-slogan {
    font-size: 34px;
    font-weight: 700;
    color: #1b2a55;
    letter-spacing: 2px;
}

.hero-sub {
    margin-top: 12px;
    font-size: 16px;
    color: var(--text-sub);
    letter-spacing: 3px;
}

.hero-illustration {
    margin-top: 30px;
    width: 100%;
    max-width: 500px;
    display: block;
}

/* ---------- 右侧登录卡片 ---------- */
.login-card {
    width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(30, 50, 100, .10);
    padding: 40px 42px 28px;
}

.card-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    padding-bottom: 8px;
    border-bottom: 3px solid var(--brand);
}

/* 输入框 */
.field {
    position: relative;
    margin-bottom: 20px;
}

.field-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    opacity: .55;
    pointer-events: none;
}

.field input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8f9fc;
    padding: 0 44px 0 42px;
    font-size: 15px;
    color: var(--text-main);
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.field input::placeholder { color: #a5aebf; }

.field input:focus {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}

.eye {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    width: 26px; height: 26px;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: .55;
}
.eye:hover { opacity: 1; }
.eye img { width: 100%; height: 100%; }

/* 记住我 / 忘记密码 */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 14px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-sub);
    cursor: pointer;
    user-select: none;
}
.remember input { accent-color: var(--brand); cursor: pointer; }

.link { color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* 错误提示 */
.error {
    background: #fdf1f1;
    color: var(--danger);
    border: 1px solid #f6d5d5;
    border-radius: 6px;
    font-size: 13px;
    padding: 8px 12px;
    margin-bottom: 16px;
}

/* 协议 */
.agreement {
    margin-top: 22px;
    font-size: 12px;
    color: #9aa3b5;
    text-align: center;
}
.agreement a { color: var(--brand); text-decoration: none; }

/* 页脚 */
.login-footer {
    padding: 16px 0 22px;
    text-align: center;
    font-size: 12px;
    color: #a5aebf;
}

/* ---------- 响应式：窄屏上下排列 ---------- */
@media (max-width: 960px) {
    .login-main { flex-direction: column; gap: 36px; padding: 24px 20px; }
    .hero { text-align: center; }
    .hero-slogan { font-size: 26px; }
    .hero-illustration { max-width: 340px; margin: 18px auto 0; }
    .login-card { width: 100%; max-width: 420px; }
}
