*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*font-family: '天王星像素';*/
}

/*
@font-face {
    font-family: '天王星像素';
    src: url('font/Uranus_Pixel_11Px.ttf');
}

@font-face {
    font-family: '猴尊宋体';
    src: url('font/猴尊宋体.ttf');
}
*/

body
{
    background-color: #343434;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

@keyframes gradientAnimation
{
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.login
{
    width: 60vw;
    height: 60vh;
    border-radius: 40vh;
    background: linear-gradient(45deg, #001aff, #baeeff);
    background-size: 200% 200%;
    animation: gradientAnimation 3s ease alternate infinite;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    padding: 50px;
    box-shadow: inset 0 0 20px #00000080;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.image
{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -30px;
    width: 800px;
    max-width: 150vw;
    opacity: 0;
    transition: all 0.5s ease;
}

.image.show
{
    opacity: 1;
    z-index: 2;
}

#loginForm
{
    width: 100%;
    max-width: 275px;
    padding-top: 30px;
    text-align: right; 
    transition: all 0.3s ease;
    position: relative;
    opacity: 1;
    
}

#loginForm.hide
{
    opacity: 0;
    pointer-events: none;    /* 防止隐藏后仍可点击 */
}

.password-toggle
{
    position: absolute;
    right: 10px;
    top: 46%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #ffffff80;
    transition: 0.3s ease;
    padding-top: 28px;
}

.password-toggle:hover
{
    color: #ffffff;
}

input {
    width: 100%;
    height: 40px;
    padding: 10px;
    border: 0px solid #ffffff00;
    border-bottom: 3px solid #ffffff80;
    background-color: #ffffff00;
    font-size: 16px;
    margin-bottom: 15px;
    transition: 0.3s ease;
    outline: none;
    color: #fff;
    font-weight: bold;
}

input:hover, input:focus
{
    border-bottom: 3px solid #ffffff;
}

input::placeholder
{
    color:#ffffff43;
}

.login-btn
{
    width: 80px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: regular;
    border-radius: 3vh;
    background-color: #4a4a4a;
    color: white;
    padding: 10px;
    transition: all 0.3s ease; 
    margin-top: 15px;
    font-weight: bold;
}

.login-btn:hover
{
    background-color: #ffffff;
    color: #4a4a4a;
    width: 95px;
    padding: 10px;
}

.error
{
    position: absolute;
    background-color: #ffdcdc9d;
    color: #db0944;
    padding: 10px;
    border-radius: 12px;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.error.fade-out
{
    opacity: 0;
}

.welcome-message
{
    font-family: "SimSun", serif;
    letter-spacing: -5vw;
    position: absolute;
    font-size: 20vw; 
    color: #ff7fa3;
    text-shadow: 0 0 10px #ff7fa372;
    max-width: 80vw;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.welcome-message.show
{
    opacity: 1;
    transform: translateY(0);
}

@media (max-aspect-ratio: 1/1)
{
    .login-btn
    {
        width: 100%; 
        padding: 10px;
    }
    .login-btn:hover { width: 100%; }
}

@media (max-aspect-ratio: 3/4)
{
    .login
    {
        padding: 8vw; 
        width: 75vw;
    }
}
