body{
    text-align: center;
    height: 100vh;
}
.container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80%;
}
#login-box{
    width: 400px;
    max-width: 90vw;
    padding: 35px 40px;
    border-radius: var(--radius-card);
    background-color: white;
    box-shadow: var(--shadow-card);
    font-family: Georgia;
}
/* 站徽摆在站名左边, 两个一起居中 */
.login-title{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 28px;
    color: var(--accent);
    letter-spacing: 1px;
}
/* 登录框上这个比导航栏那个大一号 (那儿的尺寸在 base.css) */
.login-title .brand-logo{
    width: 36px;
    height: 36px;
}
.login-note{
    margin-bottom: 20px;
    font-size: 15px;
    font-family: sans-serif;
    font-weight: normal;
    color: var(--muted);
}
.formcontrol{
    width: 100%;
    margin-bottom: 15px;
    padding: 10px 14px;
    border: 2px solid var(--line);
    border-radius: var(--radius-control);
    font-size: 17px;
    font-family: sans-serif;
    transition: border-color var(--quick), box-shadow var(--quick);
}
.formcontrol:focus{
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.button{
    border-style: none;
    background-color: var(--accent);
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    cursor: pointer;
    transition: opacity var(--quick);
}
.button:hover{
    opacity: 0.85;
}
#registerbutton{
    width: 100%;
    border-style: none;
    border-radius: var(--radius-control);
    padding: 9px;
    background-color: var(--soft);
    color: var(--ink);
    font-size: 16px;
    font-weight: bold;
    font-family: sans-serif;
    cursor: pointer;
    transition: background-color var(--quick);
}
#registerbutton:hover{
    background-color: rgb(224, 224, 224);
}

/* ========== 手机上的版式 ========== */
@media (max-width: 820px){
    body{
        height: auto;
    }
    /* 手机上屏幕短, 别再按屏高的八成去居中, 顶上留点空就行 */
    .container{
        height: auto;
        padding: 30px 0px 40px 0px;
    }
    #login-box{
        padding: 28px 22px;
    }
    .login-title{
        font-size: 24px;
    }
    .login-title .brand-logo{
        width: 30px;
        height: 30px;
    }
}
