html, body
{
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

body
{
    background: linear-gradient(135deg, #eaf6ff 0%, #b3e0ff 100%);
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    margin:0;
}

.login-container
{
    max-width: 400px;
    width: 100%;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(33,150,243,0.12);
    padding: 24px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-title
{
    color: #2196f3;
    text-align: center;
    margin-bottom: 22px;
    margin-top: 10px;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 2px;
}

.form-group
{
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    width: 100%;
}

.input
{
    flex: 1;
    padding: 10px 12px;
    border: 1.5px solid #b3e0ff;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f7fbff;
    box-shadow: 0 1px 2px rgba(33,150,243,0.04);
}

    .input:focus
    {
        border-color: #2196f3;
        box-shadow: 0 0 0 2px #b3e0ff44;
        background: #fff;
    }

.sms-btn
{
    margin-left: 8px;
    background: linear-gradient(90deg, #e3f2fd 0%, #b3e0ff 100%);
    color: #2196f3;
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 15px;
    min-width: 100px;
    max-width: 120px;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(33,150,243,0.06);
    transition: background 0.2s, color 0.2s;
}

    .sms-btn:hover
    {
        background: #b3e0ff;
        color: #1565c0;
    }

.verifycode-input
{
    flex: 1;
    min-width: 0;
    width: auto;
}

.captcha-img
{
    margin-left: 10px;
    border-radius: 8px;
    border: 1px solid #b3e0ff;
    width: 100px;
    height: 38px;
    object-fit: contain;
    background: #f7fbff;
    box-shadow: 0 1px 2px rgba(33,150,243,0.04);
}

.login-btn
{
    width: 100%;
    background: linear-gradient(90deg, #64b5f6 0%, #2196f3 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    box-shadow: 0 2px 12px rgba(33,150,243,0.10);
    letter-spacing: 2px;
    transition: background 0.2s;
}

    .login-btn:hover
    {
        background: linear-gradient(90deg, #2196f3 0%, #64b5f6 100%);
    }

.register-link
{
    text-align: right;
    margin-top: 14px;
    width: 100%;
    font-size: 15px;
}

    .register-link a
    {
        color: #2196f3;
        text-decoration: underline;
        font-size: 15px;
        font-weight: 500;
        transition: color 0.2s;
    }

        .register-link a:hover
        {
            color: #1565c0;
        }

.third-login
{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    width: 100%;
}

.qq-btn, .wechat-btn
{
    background: #fff;
    border: none;
    border-radius: 50%;
    padding: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(33,150,243,0.10);
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s;
}

    .qq-btn:hover, .wechat-btn:hover
    {
        box-shadow: 0 2px 8px rgba(33,150,243,0.18);
        background: #e3f2fd;
    }

.login-icon
{
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.form-group.sms-group,
.form-group.verify-group
{
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
    justify-content: center;
}

.custom-alert
{
    position: fixed;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 80vw;
    background: #fff;
    color: #1565c0;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(33,150,243,0.18);
    border: 1.5px solid #b3e0ff;
    padding: 18px 32px 18px 18px;
    font-size: 17px;
    font-weight: 500;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeInAlert 0.3s;
}

    .custom-alert .close-btn
    {
        background: none;
        border: none;
        color: #2196f3;
        font-size: 22px;
        font-weight: bold;
        cursor: pointer;
        margin-left: auto;
        padding: 0 6px;
        transition: color 0.2s;
    }

        .custom-alert .close-btn:hover
        {
            color: #1565c0;
        }

@keyframes fadeInAlert
{
    from
    {
        opacity: 0;
        transform: translateX(-50%) scale(0.95);
    }

    to
    {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@media (max-width: 600px)
{
    html, body
    {
        height: 100vh;
        width: 100vw;
        overflow: hidden;
    }

    body
    {
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-container
    {
        max-width: 98vw;
        width: 100%;
        margin: 0;
        padding: 12px 4px 16px 4px;
        border-radius: 8px;
        box-shadow: none;
    }

    .login-title
    {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .form-group
    {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 12px;
        width: 100%;
    }

        .form-group.sms-group,
        .form-group.verify-group
        {
            flex-direction: row;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
        }

    .input
    {
        font-size: 15px;
        padding: 10px 12px;
        margin-bottom: 0;
    }

    .sms-btn
    {
        min-width: 90px;
        max-width: 110px;
        width: 100px;
        margin-left: 8px;
        margin-top: 0;
        font-size: 15px;
        padding: 10px 0;
    }

    .verifycode-input
    {
        flex: 1;
        min-width: 0;
        width: auto;
        margin-bottom: 0;
    }

    .captcha-img
    {
        min-width: 100px;
        max-width: 100px;
        width: 100px;
        height: 32px;
        margin-left: 8px;
        margin-bottom: 0;
        object-fit: contain;
    }

    .login-btn
    {
        font-size: 16px;
        padding: 12px;
        margin-top: 10px;
    }

    .register-link
    {
        margin-top: 12px;
    }

    .third-login
    {
        gap: 10px;
        margin-top: 16px;
    }

    .qq-btn, .wechat-btn
    {
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .login-icon
    {
        width: 24px;
        height: 24px;
    }
}

.login-title-main
{
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #2196f3;
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.tab-header
{
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 0;
    width: 100%;
}

.tab-btn
{
    flex: 1;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #2196f3;
    padding: 8px 0;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-bottom: 2px solid transparent;
}

    .tab-btn.active
    {
        background: #eaf6ff;
        color: #1565c0;
        border-bottom: 2px solid #2196f3;
    }

.tab-content
{
    display: none;
}

    .tab-content.active
    {
        display: block;
    }

.input-error {
    border-color: #ff9800 !important;
    box-shadow: 0 0 0 2px #ff980044 !important;
    background: #fff7e6 !important;
}
.error-message
{
    color: #fff;
    background: #ff4d4f;
    border-radius: 6px;
    padding: 6px 20px;
    margin-bottom: 16px;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(255,77,79,0.15);
    text-align: center;
    letter-spacing: 1px;
    border: 1px solid #ff7875;
    animation: shake 0.3s;
}
.auto-register-tip
{
    color: #1890ff;
    font-size: 15px;
    letter-spacing: 1px;
}
@keyframes shake
{
    0%
    {
        transform: translateX(0);
    }

    25%
    {
        transform: translateX(-5px);
    }

    50%
    {
        transform: translateX(5px);
    }

    75%
    {
        transform: translateX(-5px);
    }

    100%
    {
        transform: translateX(0);
    }
}