body {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #2980b9;
}
.form-container {
    width: 100%;
    max-width: 380px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    background-color: #f0f0f0;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 16px;
}

.form-container input[type="text"]:focus,
.form-container input[type="email"]:focus,
.form-container input[type="password"]:focus {
    background-color: #fff;
    box-shadow: 0 0 0 2px #3498db;
    outline: none;
}

.logo {
    width: 120px;
    height: auto;
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background-color: #3498db;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.text-muted {
    color: #6c757d;
    font-size: 14px;
}

.text-decoration-none {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-decoration-none:hover {
    color: #2980b9;
}

.alert {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

/* 修改 .checkbox ��式 */
.checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.checkbox input[type="checkbox"] {
    margin: 0;
    vertical-align: middle;
    position: relative;
    top: -1px;
    margin-top: 4px;
}

.checkbox label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox label span {
    padding-left: 5px;
}

/* 如果需要，可以调整输入框的下边距 */
.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"] {
    margin-bottom: 15px; /* 减少输入框之间的间距 */
}

/* 调整按钮上方的间距 */
.btn-primary {
    margin-top: 5px; /* 添加一些顶部边距 */
}

.input-group {
    display: flex;
}

.input-group input {
    flex: 1;
    margin-bottom: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-send-code {
    width: auto;
    padding: 0 20px;
    background-color: #2ecc71;
    border: none;
    border-radius: 0 8px 8px 0;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-send-code:hover {
    background-color: #27ae60;
}

#message {
    display: none;
    margin-top: 10px;
}

/* 修改 .modal 样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.4);
}

/* 修改 .modal-content 样式 */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    max-height: 70vh;
    border-radius: 10px;
    overflow-y: auto;
    position: relative;
}

/* 调整关闭按钮样式 */
.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

/* 添加弹窗内容样式 */
#termsContent {
    padding-right: 15px;
    padding-top: 20px; /* 为关闭按钮留出空间 */
}
