/* 登录页专属样式，公共部分（导航栏、背景图）复用 style.css */

/* 登录页导航栏占位器加长，保证"请登录"靠右 */
.nav .spacer {
    width: 78%;
}

/* 登录版心：在剩余页面中水平垂直居中 */
.login-container {
    width: 100%;
    height: calc(100% - 50px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 中间的登录框 */
.login-dialog {
    width: 400px;
    height: 350px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 登录框标题 */
.login-dialog h3 {
    padding: 25px 0;
    text-align: center;
}

/* 每一行（用户名/密码/按钮） */
.login-dialog .row {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 行标签 */
.login-dialog .row span {
    display: block;
    width: 100px;
    font-weight: 700;
}

/* 输入框 */
#username, #password {
    width: 200px;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    border-radius: 10px;
    border: none;
    outline: none;
    text-indent: 10px;
}

/* 输入框获得焦点时的高亮 */
#username:focus, #password:focus {
    box-shadow: 0 0 0 2px rgba(0, 128, 0, 0.4);
}

.login-dialog .message-row {
    height: 28px;
}

.login-dialog .message {
    width: 300px;
    min-height: 20px;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}

.login-dialog .message.error {
    color: #c0392b;
}

.login-dialog .message.success {
    color: #008000;
}

/* 提交按钮 */
#submit {
    width: 300px;
    height: 50px;
    color: white;
    background-color: green;
    border: none;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* 点击按钮时的效果 */
#submit:active {
    background-color: #666;
}

/* 底部提示文字 */
.login-dialog .row.tip {
    margin-top: 10px;
}
.login-dialog .row.tip span {
    width: auto;
    font-weight: 400;
    font-size: 13px;
    color: #999;
}
.login-dialog .row.tip a {
    color: #008000;
}
