/* 仅登录、注册、找回密码等「认证页」使用，避免加载全站 styles.css（手机首屏更快） */
body.page-auth {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

body.page-auth main.container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    max-width: 450px;
    width: 92%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 24px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

body.page-auth > footer.auth-shell-footer {
    margin-top: auto;
    width: 100%;
    align-self: stretch;
    padding: 12px 12px 20px;
    font-size: 0.8rem;
    color: #6c757d;
}

body.page-auth > footer.auth-shell-footer a {
    color: #0d6efd;
}

body.page-auth h2 {
    text-align: center;
    margin-bottom: 22px;
    color: #333;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
}

body.page-auth label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #555;
    font-weight: 500;
}

body.page-auth input:not([type="checkbox"]):not([type="radio"]),
body.page-auth select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95em;
    transition: border-color 0.3s ease;
}

body.page-auth input:focus,
body.page-auth select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
}

body.page-auth button[type="submit"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, transform 0.2s ease;
}

body.page-auth button[type="submit"]:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: scale(1.01);
}

body.page-auth button[type="submit"]:active {
    transform: scale(0.99);
}

.error {
    color: #dc3545;
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.success {
    color: #28a745;
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.9em;
}

/* 显示/隐藏密码（无 Font Awesome，仅文字） */
#showPasswordBtn {
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #198754;
    z-index: 10;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    touch-action: manipulation;
}

#showPasswordBtn:hover {
    color: #146c43;
}

@media (max-width: 576px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    body.page-auth main.container {
        width: 94%;
        padding: 20px 16px;
        margin-top: 0.5rem;
    }

    body.page-auth h2 {
        font-size: 1.2rem;
    }
}
