/* ============================================================
   Kunlian BMS 云平台 - 登录页样式 (V1.2 明亮清新版)
   设计语言: 纯白卡片 + 浅蓝/浅绿渐变背景 + 柔光粒子
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #334155;
    overflow: hidden;
}

/* ---------- 背景 ---------- */
.bg-stage {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 18% 22%, rgba(186, 230, 253, 0.75) 0%, transparent 60%),
        radial-gradient(ellipse at 82% 78%, rgba(167, 243, 208, 0.70) 0%, transparent 55%),
        linear-gradient(160deg, #f0f9ff 0%, #f7fdfb 50%, #ffffff 100%);
    z-index: 0;
}
.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.10) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, transparent 75%);
}
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: float 9s ease-in-out infinite;
}
.glow-1 { width: 420px; height: 420px; background: #7dd3fc; top: -120px; left: -80px; }
.glow-2 { width: 380px; height: 380px; background: #86efac; bottom: -100px; right: -60px; animation-delay: -3s; }
.glow-3 { width: 300px; height: 300px; background: #a5f3fc; top: 40%; left: 55%; animation-delay: -6s; opacity: 0.35; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -25px) scale(1.08); }
}
#particles { position: absolute; inset: 0; }

/* ---------- 布局 ---------- */
.login-wrapper {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-card {
    width: 100%;
    max-width: 410px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 16px;
    padding: 38px 34px 26px;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 48px rgba(56, 189, 248, 0.16);
    position: relative;
    overflow: hidden;
}
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #38bdf8, #34d399, #38bdf8, transparent);
    background-size: 200% 100%;
    animation: slide-line 4s linear infinite;
}
@keyframes slide-line {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- 品牌区 ---------- */
.login-brand { text-align: center; margin-bottom: 30px; }
.brand-logo {
    width: 78px; height: 78px;
    margin: 0 auto 14px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.16), rgba(52, 211, 153, 0.10));
    border: 1px solid rgba(56, 189, 248, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    box-shadow: 0 8px 28px rgba(56, 189, 248, 0.22), inset 0 0 16px rgba(125, 211, 252, 0.12);
}
.login-brand h1 {
    font-size: 22px;
    letter-spacing: 3px;
    font-weight: 600;
    background: linear-gradient(90deg, #0284c7, #0ea5e9, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-brand p {
    margin-top: 7px;
    font-size: 12px;
    color: #64748b;
    letter-spacing: 1.5px;
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-size: 12px;
    color: #5b7285;
    margin-bottom: 7px;
    letter-spacing: 1px;
}
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap .ico {
    position: absolute;
    left: 13px;
    color: rgba(14, 165, 233, 0.55);
    pointer-events: none;
}
.input-wrap input {
    width: 100%;
    height: 46px;
    background: #ffffff;
    border: 1px solid rgba(100, 116, 139, 0.22);
    border-radius: 10px;
    color: #334155;
    font-size: 14px;
    padding: 0 44px 0 42px;
    outline: none;
    transition: border-color .25s, box-shadow .25s;
}
.input-wrap input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}
.input-wrap input::placeholder { color: #a0aec0; }
.pw-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
}
.pw-toggle:hover { color: #0ea5e9; }

/* ---------- 登录按钮 ---------- */
.btn-login {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 6px;
    color: #ffffff;
    background: linear-gradient(90deg, #0284c7, #0ea5e9, #34d399);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: transform .15s, box-shadow .25s;
    box-shadow: 0 6px 22px rgba(14, 165, 233, 0.32);
}
.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.45);
}
.btn-login:active { transform: translateY(0); }
.btn-login .btn-arrow {
    transition: transform .2s;
    font-size: 18px;
    line-height: 1;
}
.btn-login:hover .btn-arrow { transform: translateX(5px); }

/* ---------- 提示 ---------- */
.alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    border: 1px solid rgba(248, 113, 113, 0.40);
    background: rgba(254, 202, 202, 0.25);
    color: #dc2626;
}

/* ---------- 底部 ---------- */
.login-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 26px;
    font-size: 11px;
    color: #94a3b8;
}
.secure {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #10b981;
}
.copyright {
    margin-top: 22px;
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 1px;
}

/* ---------- 移动端 ---------- */
@media (max-width: 480px) {
    .login-card { padding: 30px 24px 20px; }
    .login-brand h1 { font-size: 19px; letter-spacing: 2px; }
}

/* ---------- V4.3.0 致远OA单点登录入口提示 ---------- */
.oa-sso-hint {
    margin-top: 16px;
    padding: 10px 12px;
    border: 1px dashed rgba(14, 165, 233, 0.35);
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.08);
    font-size: 12px;
    color: #7dd3fc;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.6;
}
.oa-sso-hint svg {
    flex: 0 0 auto;
    opacity: 0.85;
}
.oa-sso-hint b {
    color: #38bdf8;
    font-weight: 600;
}
