/* CSS Document */
/*===验证码登录、用户登录专用===*/
:root {
    --primary-color: #6e6edf;
    --primary-hover: #5a5ac1;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --error-color: #ff4d4f;
    --success-color: #52c41a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    transition: all 0.3s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(110, 110, 223, 0.2);
}

.input-wrapper input.error {
    border-color: var(--error-color);
}

.get-code-btn {
    position: absolute;
    right: 8px;
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.get-code-btn:hover {
    background-color: var(--primary-hover);
}

.get-code-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #999;
    font-size: 14px;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.divider::before {
    margin-right: 16px;
}

.divider::after {
    margin-left: 16px;
}

.wechat-login {
    text-align: center;
}

.wechat-login p {
    margin-bottom: 16px;
    color: #666;
    font-size: 14px;
}

.wechat-qrcode {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.wechat-qrcode img {
    max-width: 90%;
    max-height: 90%;
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 20px;
    }

    .input-wrapper input {
        padding: 10px 14px;
    }

    .get-code-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .wechat-qrcode {
        width: 150px;
        height: 150px;
    }
}
