body {
    background-color: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-box {
    width: 360px;
    background: #fff;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.login-title {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 24px;
}

/* 错误提示区域 */
.error-tip {
    background: #fee;
    color: #e64340;
    border-radius: 6px;
    margin-bottom: 16px;
    text-align: center;
}

.space {
    padding: 10px 12px;
}

.error-tip.show {
    display: block;
}

.form-item {
    margin-bottom: 16px;
}

.form-item label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

.form-item input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border 0.2s;
}

.form-item input:focus {
    border-color: #409eff;
}

/* 验证码行布局 */
.code-row {
    display: flex;
    gap: 10px;
}

.code-row input {
    flex: 1;
    text-transform: uppercase;
}

.code-img {
    width: 110px;
    height: 42px;
    background: #eef4f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.submit-btn {
    width: 100%;
    height: 44px;
    background: #409eff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

button.submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* loading圆圈样式 */
.submit-btn .loader {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

/* 旋转动画 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 只有没有 disabled 属性时，hover 才生效 */
.submit-btn:not([disabled]):hover {
    background: #337ecc;
}