* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
    color: #333;
    margin: 0 auto;
    position: relative;
}

/* 通用样式 */
header {
    align-items: center;
    padding: 15px 0px 15px 0px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
}

.back-link {
    color: #1e88e5;
    text-decoration: none;
    font-size: 16px;
}
.page-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* 页面容器 */
.login-container, .register-container, .settings-container {
    background-color: #fff;
    min-height: calc(100vh - 60px);
}

/* 登录页面样式 */
.login-logo {
    margin: 40px 0 20px;
    text-align: center;
}

.login-logo img {
    width: 120px;
    height: 120px;
}

.login-title {
    font-size: 28px;
    font-weight: bold;
    color: #1a237e;
    margin-bottom: 40px;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
}

.login-input-group {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.login-label {
    color: #9e9e9e;
    font-size: 16px;
    margin-bottom: 8px;
    text-align: left;
    display: block;
    width: 100%;
}

.login-input {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 16px;
    text-align: left;
    outline: none;
    transition: border-color 0.3s;
}

.login-input:focus {
    border-color: #1e88e5;
}

.forgot-password {
    text-align: right;
    margin-top: 5px;
    width: 100%;
}

.forgot-password a {
    color: #1e88e5;
    text-decoration: none;
    font-size: 14px;
}

.login-btn {
    width: 70%;
    padding: 10px;
    background: linear-gradient(to right, #1e88e5, #64b5f6);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin-top: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.register-link {
    width: 70%;
    padding: 10px;
    background: transparent;
    border: 1px solid #1e88e5;
    border-radius: 30px;
    color: #1e88e5;
    font-size: 16px;
    margin-top: 25px;
    cursor: pointer;
}

/* 注册页面样式 */
.register-title {
    font-size: 32px;
    font-weight: bold;
    color: #1a237e;
    margin-bottom: 30px;
    text-align: left;
    padding: 0 15px;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
    padding: 0 15px;
}

.input-placeholder {
    color: #9e9e9e;
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
}

.input-field {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.input-field:focus {
    border-color: #1e88e5;
}

.send-code {
    color: #1e88e5;
    font-size: 14px;
    position: absolute;
    right: 15px;
    bottom: 10px;
    display: block;
    margin-top: -30px;
    margin-right: 10px;
}

.register-btn {
    width: 70%;
    padding: 10px;
    background: linear-gradient(to right, #1e88e5, #64b5f6);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    margin-left: 15%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 设置页面样式 */
.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.settings-label {
    font-size: 16px;
    color: #333;
}

.settings-arrow {
    color: #9e9e9e;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4caf50;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.logout-btn {
    width: 70%;
    padding: 15px;
    background: transparent;
    border: 1px solid #1e88e5;
    border-radius: 30px;
    color: #1e88e5;
    font-size: 16px;
    margin-top: 40px;
    margin-left: 15%;
    cursor: pointer;
}

/* 调整注册页面元素位置 */
.input-group .send-code {
    position: absolute;
    right: 15px;
    top: 40px;
}

.input-group .show-password {
    position: absolute;
    right: 15px;
    top: 40px;
}