/* ----------------- 全局重置 & 基础样式 ----------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1f1f47;           /* 统一深色背景 */
    overflow: hidden;
    font-family: sans-serif;
}

/* ----------------- 磨砂玻璃卡片容器 ----------------- */
.wrapper {
    width: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);    /* 毛玻璃效果 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

/* ----------------- 标题 ----------------- */
h2 {
    font-size: 1.8em;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
}

/* ----------------- 输入框容器（带下划线浮动标签） ----------------- */
.input-box {
    position: relative;
    width: 320px;
    margin: 25px 0;
    border-bottom: 2px solid #fff;
}

.input-box input {
    width: 100%;
    height: 45px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #fff;
    padding: 0 35px 0 5px;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: #fff;
    pointer-events: none;
    transition: 0.3s;
}

/* 标签浮动动画 */
.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -5px;
    font-size: 0.8em;
    color: #fa709a;                /* 聚焦时高亮色 */
}

/* 输入框右侧图标 (注册/登录页面使用) */
.input-box .icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1.2em;
}

/* ----------------- 验证码行（输入框 + 获取按钮） ----------------- */
.code-input-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    width: 320px;
    border-bottom: 2px solid #fff;
}

.code-input-box input[type="tel"] {
    flex: 1;
    height: 45px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #fff;
    padding: 0 10px;
}

/* 获取验证码按钮 */
.yzm-button {
    padding: 0 12px;
    height: 32px;
    background-color: #fa709a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    font-size: 0.75em;
    font-weight: bold;
    transition: 0.3s;
    margin-left: 10px;
    white-space: nowrap;
    line-height: 32px;
}

.yzm-button:hover {
    background-color: #ff85a1;
}

.yzm-button:disabled {
    background-color: #666;
    opacity: 0.8;
    cursor: not-allowed;
}

/* ----------------- 复选框 / 记住密码区域 (登录/找回密码页面) ----------------- */
.remeber-forgot {
    width: 320px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remeber-forgot a {
    color: #fff;
    text-decoration: none;
}

.remeber-forgot a:hover {
    text-decoration: underline;
}

.remeber-forgot label input {
    accent-color: #fa709a;
    margin-right: 5px;
}

/* ----------------- 主按钮（提交 / 登录 / 注册） ----------------- */
#toastBtn {
    width: 320px;
    height: 45px;
    background: #fa709a;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
    font-weight: 600;
    transition: 0.3s;
    margin-top: 10px;
}

#toastBtn:hover {
    background: #ff85a1;
}

/* ----------------- 底部链接区域 ----------------- */
.register-link {
    font-size: 0.9em;
    text-align: center;
    color: #fff;
    margin-top: 20px;
}

.register-link a {
    color: #fa709a;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

.register-link p {
    margin-top: 5px;
}

/* ----------------- 邮箱注册页面专用：密码区块（默认隐藏，获取验证码后展开） ----------------- */
#pass_block {
    display: none;
    width: 100%;
}

/* ----------------- SweetAlert2 弹窗定制 (找回密码页面使用) ----------------- */
.swal2-confirm {
    background-color: #fa709a !important;
    padding: 10px 30px;
    border-radius: 20px;
    min-width: 150px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.swal2-popup {
    font-family: sans-serif;
}