
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f0f2f5;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
    color: inherit;          /* 继承父元素文字颜色 */
    text-decoration: none;   /* 移除下划线 */
    cursor: pointer;         /* 保持手型光标 */
}

/* 移除所有状态的样式 */
a:link, a:visited, a:hover, a:active {
    color: inherit;
    text-decoration: none;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 400px;
}

.login-header {
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
}

.login-header span {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding-bottom: 5px;
}

.login-header span.active {
    color: #1890ff;
    border-bottom: 2px solid #1890ff;
}

.form-group {
    margin-bottom: 24px;
}

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

input {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.code-group {
    display: flex;
    gap: 10px;
}

.code-group input {
    flex: 1;
}

.get-code-btn {
    font-size: 14px;
    width: 120px;
    background: #1890ff;
    color: white;
    border: none;
    margin-top: 2px;
    margin-bottom: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.get-code-btn:hover {
    background: #40a9ff;
}

.get-code-btn.disabled {
    font-size: 14px;
    background: #ccc;
    cursor: not-allowed;
}

.right {
    margin-left: auto;  /* 将右侧元素推到最右边 */
}

.login-btn {
    width: 100%;
    height: 40px;
    background: #1890ff;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #40a9ff;
}

/* 新增错误提示样式 */
.error-message {
    padding: 12px;
    background: #fff1f0;
    border: 1px solid #ffccc7;
    border-radius: 4px;
    color: #ff4d4f;
    margin-bottom: 20px;
    display: none; /* 默认隐藏 */
    animation: fadeIn 0.3s ease-in;
}
