/* ================== 全局重置与变量 ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #009c94;
    --btn-bg: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --input-border: rgba(255, 255, 255, 0.6);
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #333;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ================== 背景图 ================== */
.tipsbg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../css/img/tipsbg1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* ================== 登录容器（Flex 布局，确保居中） ================== */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8vh;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ================== Logo 样式（关键：block + margin auto） ================== */
.tipslogo {
    display: block;
    width: 60%;
    max-width: 300px;
    margin: 0 auto 2rem auto; /* 上 0，下 2rem，左右自动 */
    /* 不使用 padding-top 控制位置 */
}

/* ================== 输入框组 ================== */
.tipsmsg {
    width: 100%;
    max-width: 300px;
    height: 3.5rem;
    border-bottom: 1px solid var(--input-border);
    margin: 0 auto 1.5rem auto;
    position: relative;
}

.tipsmsg img {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.8rem;
    opacity: 0.9;
}

.tipsmsg input {
    width: 100%;
    height: 100%;
    padding-left: 3.2rem;
    font-size: 1.1rem;
    color: white;
    background: transparent;
    border: none;
    outline: none;
    caret-color: white;
}

.tipsmsg input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

/* ================== 按钮 ================== */
.tipsbtnbox {
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 1rem auto;
}

.vipbtnerr {
    width: 100%;
    height: 3.8rem;
    background-color: var(--btn-bg);
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vipbtnerr:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.vipbtnerr:active {
    transform: translateY(0);
}

.vipbtnerr:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ================== 错误提示 ================== */
.error-msg {
    color: #ff4444;
    font-size: 0.95rem;
    min-height: 1.2rem;
    margin-top: 0.5rem;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

/* ================== 响应式（小屏优化） ================== */
@media (max-width: 480px) {
    .tipsmsg {
        height: 3rem;
    }
    .tipsmsg img {
        width: 1.5rem;
        left: 0.6rem;
    }
    .tipsmsg input {
        font-size: 1rem;
        padding-left: 2.8rem;
    }
    .vipbtnerr {
        height: 3.5rem;
        font-size: 1.1rem;
    }
}