/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
}

/* 页面主体样式 */
body {
    background-image: url(frontend/pic/index-back.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;


    height: 100vh;
    width: 100vw;

    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
}

/* 登录容器 */
#login {
    border: 1px solid #691818;
    width: 45%;
    border-radius: 20px;
    padding: 30px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
}

#login h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 25px;
}

/* 输入框容器 */
.input-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px; /* 替代 margin-bottom */
}

/* 单个输入框样式 */
.input-wrap {
    border: 1px solid white;
    background-color: transparent;
    border-radius: 50px;
    height: 35px;
    padding: 0 25px;
    width: 100%;

    display: flex;
    align-items: center;
}

.input-wrap input {
    border: 0;
    width: 100%;
    background-color: transparent;
    font-size: 1.2rem;
    color: white;
    padding: 0;
}

.input-wrap input:focus{
    background-color: transparent;
    color: red;
}

/* 记住我 + 忘记密码 */
.rem {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    color: white;
    margin: 15px 0;
}

.rem p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rem a,
.register-container a {
    color: white;
    text-decoration: underline;
}

/* 按钮区域 */
.btn-container {
    width: 100%;
    margin-top: 15px;
}

.btn-container button {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 50px;
    background-color: white;
    color: black;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-container button:hover {
    background-color: #ffe0e0;
}

/* 注册提示 */
.register-container {
    width: 100%;
    margin-top: 20px;
    font-size: 1.2rem;
    text-align: center;
}