* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-color: #2948FF;
    --secondary-color: #396AFF;
    --accent-color: #6C63FF;
    --light-color: #8A85FF;
    --text-color: #333;
    --light-text: #666;
    --background: #f8f9fa;
    --white: #ffffff;
    --card-shadow: 0 10px 30px rgba(41, 72, 255, 0.1);
    --hover-shadow: 0 15px 35px rgba(41, 72, 255, 0.2);
    --error-color: #ff4757;
    --success-color: #2ed573;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /*padding: 20px;*/
}

.container {
    display: flex;
    /*max-width: 1000px;*/
    width: 100%;
    /*border-radius: 20px;*/
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: var(--white);
}

.left-panel {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.left-panel h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}
#registerForm label{display: none}
.left-panel p {
    margin-bottom: 30px;
    opacity: 0.9;
    font-size: 1.1rem;
}

.features {
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.feature i {
    font-size: 1.2rem;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-panel {
    flex: 1.2;
    padding: 50px;
    background: var(--white);
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}


.logo img {
    margin-right: 10px;
}

h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.subtitle {
    color: var(--light-text);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(41, 72, 255, 0.2);
}

.input-with-button {
    display: flex;
    gap: 10px;
}

.input-with-button .form-control {
    flex: 1;
}

.send-code-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.send-code-btn:hover {
    background: var(--secondary-color);
}

.send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-image {
    height: 50px;
    border-radius: 8px;
    background: #f3fbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 0 15px;
    cursor: pointer;
    user-select: none;
}

.terms {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.terms input {
    margin-right: 10px;
}

.terms label {
    font-size: 0.9rem;
    color: var(--light-text);
}

.terms a {
    color: var(--primary-color);
    text-decoration: none;
}

.btn-register {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.login-link {
    text-align: center;
    margin-top: 25px;
    color: var(--light-text);
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.remember {
    display: flex;
    align-items: center;
}

.remember input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.register-link {
    text-align: center;
    margin-top: 25px;
    color: var(--light-text);
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.social-login{text-align: center; margin-top: 25px}
.social-login a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.btn-reset {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reset:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.back-link {
    text-align: center;
    margin-top: 25px;
    color: var(--light-text);
}

.back-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.password-strength {
    margin-top: 8px;
    height: 6px;
    border-radius: 3px;
    background: #f1f2f6;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: all 0.3s;
}

.password-strength-text {
    font-size: 0.8rem;
    margin-top: 5px;
    color: var(--light-text);
}
.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        max-width: 500px;
    }

    .left-panel {
        padding: 30px;
        text-align: center;
        align-items: center;
        display: none;
    }

    .right-panel {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .left-panel, .right-panel {
        padding: 20px;
    }

    h1 {
        font-size: 1.7rem;
    }

    .input-with-button {
        flex-direction: column;
    }

    .send-code-btn {
        padding: 12px;
    }
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .forgot-password {
        margin-left: 28px;
    }
    .input-with-button {
        flex-direction: column;
    }

    .send-code-btn {
        padding: 12px;
    }
}

.msg-popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    z-index: 9999;
    animation: fadeIn .3s ease;
}
.msg-popup.success::before {
    content: "✔ ";
    color: #4caf50;
    margin-right: 6px;
    font-weight: bold;
}
.msg-popup.error::before {
    content: "✖ ";
    color: #f44336;
    margin-right: 6px;
    font-weight: bold;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
