﻿body {
    background: linear-gradient(135deg, #eaf5ff 0%, #abcdff 100%) !important;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

header {
    top: 0;
}

.container {
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    min-height: 550px;
}

.banner {
    flex: 1;
    background: linear-gradient(to bottom right, #4776E6, #8E54E9);
    color: white;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .banner h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        font-weight: 700;
    }

    .banner p {
        font-size: 1.1rem;
        line-height: 1.6;
        max-width: 350px;
        opacity: 0.9;
    }

.banner-image {
    margin-top: 30px;
    width: 80%;
    max-width: 300px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

.content {
    flex: 1.6;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 300%;
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-container {
    width: 33.333%;
    padding: 0 40px;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

    .form-title h2 {
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 8px;
    }

    .form-title p {
        color: #777;
        font-size: 1rem;
    }

.tabs {
    display: flex;
    background: #f5f7fb;
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 25px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .tab.active {
        background: #4776E6;
        color: white;
        box-shadow: 0 4px 8px rgba(71, 118, 230, 0.3);
    }

.form-group {
    margin-bottom: 20px;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
        color: #555;
    }

.form-control {
    width: 100%;
    padding: 14px 40px 14px 15px;
    border: 2px solid #e1e5f1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

    .form-control:focus {
        border-color: #4776E6;
        box-shadow: 0 0 0 3px rgba(71, 118, 230, 0.2);
        outline: none;
    }

    .form-control.error {
        border-color: #ff4757;
    }

.error-message {
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
}

.captcha-container {
    display: flex;
    gap: 10px;
    position: relative;
}

    .captcha-container input {
        flex: 1;
    }

.btn-send {
    padding: 0 15px;
    background: #f1f5ff;
    border: 2px solid #e1e5f1;
    border-radius: 10px;
    color: #4776E6;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    /* min-width: 100px; */
}

    .btn-send:hover {
        background: #e4eaff;
    }

    .btn-send:disabled {
        background: #f5f7fb;
        color: #a0a0a0;
        cursor: not-allowed;
    }

    .btn-send.emb {
        padding: 5px 8px 5px 2px;
        border: none;
        background: none;
        position: absolute;
        right: 0;
        top: 11px;
        font-size: 0.9rem;
    }

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #4776E6, #8E54E9);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(71, 118, 230, 0.4);
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(71, 118, 230, 0.6);
    }

.form-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.95rem;
}

.link {
    color: #4776E6;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

    .link:hover {
        text-decoration: underline;
    }

.back-link {
    display: flex;
    align-items: center;
    color: #4776E6;
    font-weight: 500;
    margin-bottom: 20px;
    cursor: pointer;
    width: fit-content;
}

    .back-link i {
        margin-right: 8px;
        transition: transform 0.3s;
    }

    .back-link:hover i {
        transform: translateX(-3px);
    }

.register-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.register-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

.terms {
    margin: 20px 0;
    font-size: 0.9rem;
    color: #666;
}

    .terms input {
        margin-right: 8px;
    }

/* 密码可见性切换按钮 */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 28px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    background: none;
    border: none;
    font-size: 1.1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .password-toggle:hover {
        color: #4776E6;
    }

/* 输入框容器 */
.input-container {
    position: relative;
}

.fa-eye::before {
    font-style: normal;
    content: '\f06e'
}

.fa-eye-slash::before {
    font-style: normal;
    content: '\f070'
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        max-width: 500px;
    }

    .banner {
        padding: 30px 20px;
    }

        .banner h1 {
            font-size: 2rem;
        }

    .content {
        padding: 30px 0;
    }

    .form-container {
        padding: 0 30px;
    }

    .register-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 25px 0;
    }

    .form-container {
        padding: 0 20px;
    }

    .form-title h2 {
        font-size: 1.5rem;
    }

    .form-control {
        padding: 12px 35px 12px 12px;
    }

    .password-toggle {
        right: 10px;
    }
}
