﻿body {
    font-family: sans-serif;
    background:white;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
}

#slider-box {
    flex: 0.7;
    text-align: center;
    justify-content: center;
    background: white;
    position: relative;
    overflow: hidden;
    max-height: 100vh;
}

    #slider-box img {
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 1 / 1; /* 保证为正方形 */
        object-fit: cover;
        border-radius: 50%; /* 圆形效果 */
        margin: 0 auto; /* 水平居中 */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0;
        transition: opacity 1s;
        border: 4px solid white;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
    }

        #slider-box img.active {
            opacity: 1;
            z-index: 1;
        }

#login-box {
    flex: 1;
    max-width: 350px;
    margin: auto 40px auto auto; /* 靠右但留出内边距 */
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: -4px 0 8px rgba(0,0,0,0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

input, label {
    display: block;
    margin-bottom: 10px;
    width: 100%;
    padding: 8px;
}

button {
    padding: 10px;
    width: 100%;
    background: #e53935;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
    cursor: pointer;
}

    button:hover {
        background: #b71c1c;
    }

#remember-box {
    display:flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 0px;
}
    #remember-box label {
        white-space: nowrap; /* 不允许换行 */
        word-break: keep-all; /* 中文保持整体 */
        display: inline-block;
    }

.flag {
    width: 32px;
    height: 20px;
    cursor: pointer;
    margin: 0 5px;
}

#flag-box {
    display: flex;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 768px) {
    #container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #slider-box {
        height: 40vh;
        width:300px;
        flex: none;
        border-radius: 0;  
    }

    #login-box {
        width: 100%;
        height: 60vh;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}
