/**
 * WoVip5G 登录页 v4.2 — 高清背景 + 居中登录卡
 */
:root {
    --brand: #5b9fd6;
    --brand-dark: #3d7fb8;
    --text: #1a1a1a;
    --text-muted: #8c8c8c;
    --border: #e2ebf3;
    --surface: #ffffff;
    --radius: 12px;
    --shadow: 0 18px 48px rgba(10, 26, 58, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.signin {
    font-family: "Noto Sans SC", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    background: #0a1a3a url("../../img/login-bg.png") no-repeat center center fixed;
    background-size: cover;
}

/* 轻微遮罩，保证登录卡对比度，尽量不糊背景 */
body.signin::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 18, 48, 0.18) 0%,
        rgba(6, 18, 48, 0.08) 45%,
        rgba(6, 18, 48, 0.28) 100%
    );
    pointer-events: none;
}

.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    flex-shrink: 0;
    animation: loginIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes loginIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.9);
    overflow: hidden;
    padding: 22px 24px 18px;
}

.brand-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.brand-mini-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #6eb4e4, #3d7fb8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(61, 127, 184, 0.3);
    flex-shrink: 0;
}

.brand-mini-text {
    min-width: 0;
}

.brand-mini-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.brand-mini-sub,
.form-header,
.form-title,
.form-subtitle,
.field-label,
.login-foot {
    display: none !important;
}

.field { margin-bottom: 12px; }

.input-wrap { position: relative; }

.input-wrap > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #bfbfbf;
    font-size: 14px;
    z-index: 2;
    transition: color 0.2s;
    pointer-events: none;
}

.input-wrap .form-control {
    height: 40px;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 14px;
    padding: 0 12px 0 36px;
    background: #f7fafc;
    color: var(--text);
    outline: none;
    box-shadow: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.input-wrap .form-control:focus {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(91, 159, 214, 0.18);
}

.input-wrap:focus-within > i { color: var(--brand); }

.input-wrap .form-control::placeholder { color: #bfbfbf; }

.captcha-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.captcha-row .input-wrap { flex: 1; }

.captcha-image {
    height: 40px;
    width: 108px;
    border-radius: 9px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: #f7fafc;
    transition: border-color 0.2s, opacity 0.2s;
    flex-shrink: 0;
    object-fit: cover;
}

.captcha-image:hover {
    border-color: var(--brand);
    opacity: 0.92;
}

.remember-row {
    display: flex;
    align-items: center;
    margin: 0 0 14px;
}

.remember-row input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--brand);
    margin-right: 6px;
    cursor: pointer;
}

.remember-row label {
    font-size: 13px;
    color: #595959;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.btn-login {
    width: 100%;
    height: 40px;
    border-radius: 9px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    cursor: pointer;
    transition: box-shadow 0.2s, opacity 0.2s;
    letter-spacing: 0.16em;
}

.btn-login:hover {
    box-shadow: 0 8px 18px rgba(61, 127, 184, 0.35);
    opacity: 0.96;
}

.btn-login:active { opacity: 0.88; }

label.error {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* 兼容旧双栏结构隐藏 */
.brand-panel { display: none !important; }

@media (max-width: 640px) {
    body.signin { padding: 20px; }
    .login-shell { max-width: 100%; }
    .login-card { padding: 20px 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-shell { animation: none; }
    .btn-login,
    .input-wrap .form-control,
    .captcha-image { transition: none; }
}
