* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px; /* 留空间给底部按钮或系统导航栏 */
    padding-bottom: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.form-box {
    background: white;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.form-box input {
    width: 100%; /* 确保所有输入框宽度一致 */
    height: 40px; /* 统一输入框高度 */
    padding: 8px; /* 统一内边距 */
    box-sizing: border-box; /* 包含padding和border */
    border: 1px solid #ccc; /* 统一边框样式 */
    border-radius: 4px; /* 统一圆角 */
    line-height: normal; /* 防止line-height影响高度 */
}

h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 8px;
    color: #333;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center; /* 垂直居中 */
    gap: 10px;
    height: 40px; /* 固定容器高度，确保居中 */
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #007bff;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background: #333;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 10px;
    color: #666;
    font-size: 14px;
}

.google-btn {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.google-btn:hover {
    background: #f5f5f5;
}

.google-btn img {
    width: 18px;
    height: 18px;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    color: #666;
}

.login-link a {
    color: #007bff;
    text-decoration: none;
}

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

/* Error message styling */
.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* Success message styling */
.success-message {
    color: #28a745;
    text-align: center;
    margin-top: 10px;
    display: none;
}

.login-image {
  width: 80px;
  height: auto;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 20px;
  display: block;
  border-radius: 50%;
}

.login-image2 {
  width: 80px;
  height: auto;
  position: relative;
  left: 15%;
  transform: translateX(-50%);
  margin-bottom: 20px;
  border-radius: 50%;
}

/* 提示框样式 */
#toast {
    position: fixed;
    top: 50%; /* 垂直居中 */
    left: 50%; /* 水平居中 */
    transform: translate(-50%, -50%); /* 精确居中 */
    background-color: #333;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    display: none; /* 默认隐藏 */
    z-index: 9999;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.container label {
    display: block;
    margin-top: 15px;
}
.container input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    margin-bottom: 10px;
}
.container button {
    width: 100%;
    padding: 10px;
    background-color: #05070a;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.container button:hover {
    background-color: #1d2d3f;
}

#phone {
    flex: 1; /* 让输入框占满剩余空间 */
    height: 40px; /* 与其他输入框高度一致 */
    padding: 8px; /* 与其他输入框一致 */
    border: 1px solid #ccc; /* 确保边框一致 */
    border-radius: 4px;
    box-sizing: border-box;
}
#getCodeBtn {
    padding: 0; /* 移除内边距 */
    height: 32px; /* 稍微小于输入框高度，视觉上更协调 */
    width: 60px; /* 调整宽度，匹配截图比例 */
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center; /* 按钮内文字垂直居中 */
    justify-content: center; /* 按钮内文字水平居中 */
    box-sizing: border-box;
    font-size: 12px; /* 调整字体大小，匹配截图 */
    line-height: normal; /* 防止line-height影响 */
    margin-top:-10px; /* 调整按钮位置，确保与输入框对齐 */
}
#getCodeBtn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.guide-box {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.guide-text {
    color: #666;
    font-size: 14px;
    margin: 20px 0;
}

.guide-link a {
    color: #007bff;
    text-decoration: none;
    font-size: 16px;
}

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

.guide-tip {
    color: #999;
    font-size: 12px;
    margin-top: 20px;
}