/* 用户 / 管理登录页 */
.portal-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}
.portal-login-page.is-user {
    background: linear-gradient(160deg, #f0fdf4 0%, #ecfdf5 40%, #f8fafc 100%);
}
.portal-login-page.is-admin {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}
.portal-login-wrap { width: 100%; max-width: 400px; }
.portal-login-back {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
}
.portal-login-page.is-admin .portal-login-back { color: rgba(255,255,255,.6); }
.portal-login-back:hover { color: #10b981; }
.portal-login-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 20px 50px rgba(15,23,42,.08);
}
.portal-login-page.is-admin .portal-login-card {
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.portal-login-head { text-align: center; margin-bottom: 28px; }
.portal-login-head h1 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.portal-login-head p { font-size: 14px; color: #64748b; line-height: 1.6; }
.portal-login-page.is-admin .portal-login-head h1 { color: #0f172a; }
.portal-login-tip {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f0fdf4;
    font-size: 12px;
    color: #047857;
    line-height: 1.6;
    text-align: left;
}
.portal-login-page.is-admin .portal-login-tip {
    background: #f1f5f9;
    color: #475569;
}
.portal-login-card .form-group { margin-bottom: 18px; }
.portal-login-card label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}
.portal-login-card input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color .2s;
}
.portal-login-card input:focus {
    outline: none;
    border-color: #10b981;
}
.password-field-wrap {
    position: relative;
}
.password-field-wrap .password-input {
    padding-right: 44px;
}
.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0;
}
.password-toggle:hover { color: #10b981; background: rgba(16,185,129,.08); }
.password-toggle svg { width: 20px; height: 20px; }
.password-toggle .icon-eye-closed { display: none; }
.password-toggle.is-visible .icon-eye-open { display: none; }
.password-toggle.is-visible .icon-eye-closed { display: block; }
.login-captcha-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.login-captcha-input {
    flex: 1;
    min-width: 0;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.login-captcha-img {
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    display: block;
    background: #f8fafc;
}
.login-captcha-refresh {
    flex-shrink: 0;
    width: 36px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}
.login-captcha-refresh:hover {
    border-color: #10b981;
    color: #10b981;
    background: #f0fdf4;
}
.portal-login-submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    margin-top: 6px;
}
.portal-login-page.is-admin .portal-login-submit {
    background: linear-gradient(135deg, #0f172a, #334155);
}
.portal-login-alt {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}
.portal-login-alt a { color: #10b981; }
