/* ============================================================
 * 登录/注册 页 - Figma 1:1 还原
 * 设计基准 375px 宽，1rem = 10px
 * 视口 ≤ 480px 等比缩放，> 480px 锁定 480px 居中
 * ============================================================ */
html {
    font-size: calc(min(100vw, 480px) / 37.5);
}

.login-banner {
    margin: 0 auto 1.4rem;
    max-width: 28rem;
    padding: 0.8rem 1.2rem;
    background: #e2f5d8;
    border: 0.1rem solid #b3deaf;
    border-radius: 0.6rem;
    color: #2b8a16;
    font-size: 1.2rem;
    text-align: center;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: #2b0201;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #2b0201;
    font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
    color: #fff;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.phone {
    position: relative;
    width: 37.5rem;
    min-height: 81.2rem;
    overflow: hidden;
    background: #b30603;
}

/* ===== 整页背景图（含党徽 + 丝绸 + 装饰） ===== */
/* bg.png 图片自身顶部和底部都各有一条 ~8px 的蓝/白细线
   这里把图片元素向上偏移 2rem，并把高度增加 4rem（上 2rem + 下 2rem）
   配合 .phone 的 overflow:hidden 把上下两条细线都裁掉 */
.auth-bg {
    position: absolute;
    top: -2rem;
    left: 0;
    width: 100%;
    height: calc(100% + 4rem);
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    z-index: 0;
    display: block;
}

/* ===== 状态栏 ===== */
.status-bar {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 4.4rem;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.status-bar__time {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    padding-left: 0.6rem;
}

.status-bar__icons {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding-right: 0.6rem;
}

.status-bar__icon {
    display: block;
    height: 1.3rem;
}

.status-bar__icon--wifi    { width: 1.7rem; }
.status-bar__icon--signal  { width: 1.8rem; }
.status-bar__icon--battery { width: 2.8rem; }

/* ===== Logo ===== */
.logo {
    position: relative;
    z-index: 5;
    width: 8.8rem;
    height: 8.8rem;
    margin: 4.6rem auto 1rem;
    border-radius: 1.6rem;
    overflow: hidden;
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.25);
}

.logo__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

/* ===== 标题（淡金/奶油色） ===== */
.title {
    position: relative;
    z-index: 5;
    margin: 0 0 6.5rem;
    text-align: center;
    color: #f7e2b2;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.15rem;
    text-shadow: 0 0.2rem 0.5rem rgba(70, 0, 0, 0.4);
}

/* ===== 表单 ===== */
.form {
    position: relative;
    z-index: 5;
    padding: 0 3.4rem;
}

.field {
    margin-bottom: 2.4rem;
}

.field__label {
    display: block;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
}

.field__input {
    width: 100%;
    height: 3rem;
    padding: 0 0 0.6rem;
    background: transparent;
    border: 0;
    border-bottom: 0.1rem solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 1.35rem;
    outline: none;
}

.field__input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.field__input:focus {
    border-bottom-color: #ffd97b;
}

/* 伪密码输入框：实际是 type=text，但视觉上用圆点遮罩。
   这样在 Chrome/Edge 等浏览器眼里它就不是密码字段，
   HTTP 站点弹出的"自动填写功能已停用"提示就不会再出现。 */
.field__input--pwd-mask {
    -webkit-text-security: disc;
    -moz-text-security: disc;
    text-security: disc;
    letter-spacing: 0.15rem;
    font-family: "text-security-disc", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
}
.field__input--pwd-mask::placeholder {
    -webkit-text-security: none;
    text-security: none;
    letter-spacing: normal;
}

.form-row {
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    user-select: none;
}

.remember__box {
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    border: 0.1rem solid rgba(255, 255, 255, 0.85);
    border-radius: 0.2rem;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.remember__box:checked {
    background: #fff;
    border-color: #fff;
}

.remember__box:checked::after {
    content: "";
    position: absolute;
    top: 0.1rem;
    left: 0.4rem;
    width: 0.4rem;
    height: 0.8rem;
    border: solid #b30503;
    border-width: 0 0.16rem 0.16rem 0;
    transform: rotate(45deg);
}

.app-link {
    color: #fff;
    font-size: 1.3rem;
}

/* ===== 按钮 ===== */
.login-btn,
.register-btn {
    display: block;
    width: 25rem;
    height: 4.6rem;
    margin: 5rem auto 1.6rem;
    border: 0;
    border-radius: 2.3rem;
    background: linear-gradient(
        180deg,
        #fff6d5 0%,
        #f6d68d 28%,
        #d9a953 58%,
        #b6843a 100%
    );
    color: #5b2c08;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    cursor: pointer;
    box-shadow:
        inset 0 0.15rem 0 rgba(255, 255, 255, 0.7),
        inset 0 -0.25rem 0.4rem rgba(120, 60, 0, 0.3),
        0 0.4rem 1rem rgba(0, 0, 0, 0.28);
}

.login-btn:active,
.register-btn:active {
    transform: translateY(0.1rem);
}

.register-link,
.back-to-login {
    display: block;
    text-align: center;
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 3rem;
}
