﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-dark: #0a192f;
    --primary-blue: #1a365d;
    --secondary-blue: #2d4a8a;
    --accent-teal: #38b2ac;
    --accent-orange: #ed8936;
    --accent-purple: #9f7aea;
    --light-gray: #f7fafc;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('../imgs/login.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.login-left {
    flex: 1;
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.9)), url('../imgs//login_1.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-left-content {
    max-width: 400px;
}

.login-logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.login-logo-img {
    height: 60px;
    width: auto;
    margin-right: 15px;
    background-color: var(--accent-teal);
    border-radius: 8px;
}

.login-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.login-logo-main {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.login-logo-sub {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
    color: var(--white);
}

.login-left h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.login-left p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.login-features {
    list-style: none;
    margin-top: 30px;
}

    .login-features li {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }

    .login-features i {
        color: var(--accent-teal);
        margin-right: 10px;
        font-size: 1.2rem;
    }

.login-right {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 40px;
}

    .login-header h2 {
        font-size: 2.2rem;
        color: var(--primary-dark);
        margin-bottom: 10px;
    }

    .login-header p {
        color: var(--text-light);
    }

    .login-header a {
        color: var(--accent-teal);
        text-decoration: none;
        font-weight: 600;
    }

.login-form {
    width: 100%;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s;
}

    .form-control:focus {
        outline: none;
        border-color: var(--accent-teal);
        box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.1);
    }

.input-with-icon {
    position: relative;
}

    .input-with-icon i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-light);
    }

    .input-with-icon input {
        padding-left: 45px;
    }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
}

    .remember-me input {
        margin-right: 8px;
    }

.forgot-password {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 500;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

.login-container .btn {
    padding: 12px 30px;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.login-container .btn-primary {
    background-color: var(--accent-teal);
    color: var(--white);
}

    .login-container .btn-primary:hover {
        background-color: #2c9c97;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.social-login {
    margin-top: 30px;
}

.social-divider {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

    .social-divider span {
        padding: 0 15px;
        color: var(--text-light);
        font-size: 0.9rem;
    }

    .social-divider:before,
    .social-divider:after {
        content: "";
        flex: 1;
        height: 1px;
        background-color: #e2e8f0;
    }

.social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.social-btn {
    padding: 10px;
    border: 1px solid #e2e8f0;
    background-color: var(--white);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .social-btn:hover {
        background-color: #f8fafc;
        transform: translateY(-2px);
    }

    .social-btn i {
        font-size: 1.2rem;
    }

.social-wechat {
    color: #07c160;
}

.social-qq {
    color: #12b7f5;
}

.social-weibo {
    color: #e6162d;
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    color: var(--text-light);
}

    .login-footer a {
        color: var(--accent-teal);
        text-decoration: none;
        font-weight: 600;
    }

/* 响应式设计 */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        max-width: 500px;
    }

    .login-left {
        padding: 30px;
    }

        .login-left h2 {
            font-size: 2rem;
        }
}

@media (max-width: 576px) {
    .login-left, .login-right {
        padding: 30px 20px;
    }

        .login-left h2 {
            font-size: 1.8rem;
        }

    .login-header h2 {
        font-size: 1.8rem;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}







.register-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 900px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.register-left {
    flex: 1;
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.9)), url('../imgs/login_1.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.register-left-content {
    max-width: 400px;
}

.register-logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.register-logo-img {
    height: 60px;
    width: auto;
    margin-right: 15px;
    background-color: var(--accent-teal);
    border-radius: 8px;
}

.register-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.register-logo-main {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.register-logo-sub {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
    color: var(--white);
}

.register-left h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.register-left p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.register-benefits {
    list-style: none;
    margin-top: 30px;
}

    .register-benefits li {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }

    .register-benefits i {
        color: var(--accent-teal);
        margin-right: 10px;
        font-size: 1.2rem;
    }

.register-right {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: hidden;
    max-height:900px;
}

.register-header {
    margin-bottom: 30px;
}

    .register-header h2 {
        font-size: 2.2rem;
        color: var(--primary-dark);
        margin-bottom: 10px;
    }

    .register-header p {
        color: var(--text-light);
    }

    .register-header a {
        color: var(--accent-teal);
        text-decoration: none;
        font-weight: 600;
    }

.register-form {
    width: 100%;
}

.form-steps {
    display: flex;
    margin-bottom: 30px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 600;
    z-index: 1;
    position: relative;
}

.step.active .step-number {
    background-color: var(--accent-teal);
    color: var(--white);
}

.step.completed .step-number {
    background-color: var(--accent-teal);
    color: var(--white);
}

    .step.completed .step-number:after {
        content: "✓";
    }

.step-title {
    font-size: 0.9rem;
    color: var(--text-light);
}

.step.active .step-title {
    color: var(--accent-teal);
    font-weight: 600;
}

.step:not(:last-child):after {
    content: "";
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #e2e8f0;
    z-index: 0;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

    .form-label span {
        color: #e53e3e;
    }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s;
}

    .form-control:focus {
        outline: none;
        border-color: var(--accent-teal);
        box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.1);
    }

.input-with-icon {
    position: relative;
}

    .input-with-icon i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-light);
    }

    .input-with-icon input {
        padding-left: 45px;
    }

.form-row {
    display: flex;
    gap: 15px;
}

    .form-row .form-group {
        flex: 1;
    }

.password-strength {
    margin-top: 5px;
}

.strength-bar {
    height: 5px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background-color 0.3s;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-light);
}

.strength-weak .strength-fill {
    width: 25%;
    background-color: #f56565;
}

.strength-fair .strength-fill {
    width: 50%;
    background-color: #ed8936;
}

.strength-good .strength-fill {
    width: 75%;
    background-color: #ecc94b;
}

.strength-strong .strength-fill {
    width: 100%;
    background-color: #48bb78;
}

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

    .verification-code input {
        flex: 1;
    }

.btn-code {
    padding: 12px 20px;
    background-color: var(--accent-teal);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

    .btn-code:disabled {
        background-color: #cbd5e0;
        cursor: not-allowed;
    }

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

    .form-check input {
        margin-top: 5px;
        margin-right: 10px;
    }

    .form-check label {
        font-size: 0.9rem;
        color: var(--text-dark);
    }

    .form-check a {
        color: var(--accent-teal);
        text-decoration: none;
    }

        .form-check a:hover {
            text-decoration: underline;
        }

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}


.register-container .btn {
    padding: 12px 30px;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.register-container .btn-primary {
    background-color: var(--accent-teal);
    color: var(--white);
    flex: 1;
}

.register-container .btn-primary:hover {
    background-color: #2c9c97;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #e2e8f0;
    color: var(--text-dark);
}

    .btn-secondary:hover {
        background-color: #cbd5e0;
    }

.form-pages {
    display: none;
}

    .form-pages.active {
        display: block;
    }

.register-footer {
    margin-top: 30px;
    text-align: center;
    color: var(--text-light);
}

    .register-footer a {
        color: var(--accent-teal);
        text-decoration: none;
        font-weight: 600;
    }

.input-error {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 4px;
    min-height: 10px;
    margin-left:10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .register-container {
        flex-direction: column;
        max-width: 500px;
    }

    .register-left {
        padding: 30px;
    }

        .register-left h2 {
            font-size: 2rem;
        }

    .register-right {
        padding: 30px;
        max-height: none;
    }
}

@media (max-width: 576px) {
    .register-left, .register-right {
        padding: 30px 20px;
    }

        .register-left h2 {
            font-size: 1.8rem;
        }

    .register-header h2 {
        font-size: 1.8rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-steps {
        flex-direction: column;
        gap: 20px;
    }

    .step:not(:last-child):after {
        display: none;
    }
}