/* ============================================================
   国兆知识产权企业中控平台 - 登录页（科技/现代/企业风）
   ============================================================ */
html, body {
    height: 100%;
}
body.signin {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #020617;
    color: #e2e8f0;
    overflow: hidden;
}
* { box-sizing: border-box; }

/* ===================== 背景层 ===================== */
.login-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    overflow: hidden;
}
.bg-image {
    position: absolute;
    inset: 0;
    background: url('../img/login-tech-bg.svg') no-repeat center center;
    background-size: cover;
}
.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 78%);
    mask-image: radial-gradient(ellipse at center, black 35%, transparent 78%);
}
.bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 45%, transparent 0%, rgba(2, 6, 23, 0.55) 100%);
}
/* 光斑 */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    animation: orbFloat 18s ease-in-out infinite;
}
.bg-orb.o1 { width: 520px; height: 520px; left: -140px; top: -140px; background: #2563eb; }
.bg-orb.o2 { width: 420px; height: 420px; right: -110px; top: 28%; background: #0891b2; animation-delay: -6s; }
.bg-orb.o3 { width: 400px; height: 400px; left: 30%; bottom: -180px; background: #4f46e5; animation-delay: -11s; }
@keyframes orbFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-36px); }
}
/* 上升粒子 */
.bg-particles span {
    position: absolute;
    bottom: -14px;
    border-radius: 50%;
    background: #7dd3fc;
    opacity: 0;
    animation: particleRise linear infinite;
}
.bg-particles span:nth-child(1)  { left: 6%;  width: 5px;  height: 5px;  animation-duration: 14s; animation-delay: 0s; }
.bg-particles span:nth-child(2)  { left: 16%; width: 3px;  height: 3px;  animation-duration: 18s; animation-delay: 3s; }
.bg-particles span:nth-child(3)  { left: 26%; width: 4px;  height: 4px;  animation-duration: 12s; animation-delay: 1s; }
.bg-particles span:nth-child(4)  { left: 37%; width: 3px;  height: 3px;  animation-duration: 20s; animation-delay: 6s; }
.bg-particles span:nth-child(5)  { left: 48%; width: 6px;  height: 6px;  animation-duration: 15s; animation-delay: 2s; }
.bg-particles span:nth-child(6)  { left: 58%; width: 3px;  height: 3px;  animation-duration: 17s; animation-delay: 8s; }
.bg-particles span:nth-child(7)  { left: 67%; width: 5px;  height: 5px;  animation-duration: 13s; animation-delay: 4s; }
.bg-particles span:nth-child(8)  { left: 76%; width: 3px;  height: 3px;  animation-duration: 19s; animation-delay: 9s; }
.bg-particles span:nth-child(9)  { left: 84%; width: 4px;  height: 4px;  animation-duration: 16s; animation-delay: 5s; }
.bg-particles span:nth-child(10) { left: 91%; width: 5px;  height: 5px;  animation-duration: 14s; animation-delay: 7s; }
.bg-particles span:nth-child(11) { left: 54%; width: 3px;  height: 3px;  animation-duration: 21s; animation-delay: 10s; }
.bg-particles span:nth-child(12) { left: 22%; width: 4px;  height: 4px;  animation-duration: 17s; animation-delay: 11s; }
@keyframes particleRise {
    0%   { transform: translateY(0);         opacity: 0; }
    8%   { opacity: 0.8; }
    100% { transform: translateY(-108vh);    opacity: 0; }
}

/* ===================== 登录卡片 ===================== */
.login-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-card {
    width: 960px;
    max-width: 100%;
    display: flex;
    min-height: 520px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* 左：品牌区 */
.login-brand {
    width: 44%;
    padding: 46px 38px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, rgba(37, 99, 235, 0.22), rgba(6, 182, 212, 0.06) 60%, transparent);
    border-right: 1px solid rgba(148, 163, 184, 0.12);
}
.brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
    margin-bottom: 22px;
}
.brand-logo .brand-logo-img {
    width: 28px;
    height: 28px;
    display: block;
}
.brand-title {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 1px;
    color: #f8fafc;
}
.brand-en {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 10px;
    letter-spacing: 0.4px;
}
.brand-list {
    list-style: none;
    padding: 0;
    margin: 26px 0;
    flex: 1;
}
.brand-list li {
    padding: 7px 0;
    color: #cbd5e1;
    font-size: 14px;
}
.brand-list i {
    color: #38bdf8;
    margin-right: 10px;
}
.brand-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    padding-top: 14px;
    color: #94a3b8;
    font-size: 13px;
}
.brand-bottom .num {
    font-size: 22px;
    font-weight: 700;
    color: #38bdf8;
}

/* 右：登录表单 */
.login-form {
    flex: 1;
    padding: 46px 44px;
    display: flex;
    flex-direction: column;
}
.login-form h3 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #f8fafc;
}
.form-sub {
    color: #94a3b8;
    font-size: 13px;
    margin: 0 0 26px;
}
.form-group {
    position: relative;
    margin-bottom: 18px;
}
.form-group > i {
    position: absolute;
    left: 0;
    top: 13px;
    color: #64748b;
    font-size: 16px;
    width: 34px;
    text-align: center;
    transition: color 0.3s;
}
.form-group .form-control {
    width: 100%;
    height: 46px;
    padding: 10px 14px 10px 42px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.form-group .form-control:focus {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.06);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.form-group .form-control:focus ~ i,
.form-group.focus > i {
    color: #38bdf8;
}
.form-control::placeholder {
    color: #64748b;
}
/* 验证码 */
.code-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.code-group .form-group {
    flex: 1;
    margin-bottom: 18px;
}
.code-group .form-group .form-control {
    padding-right: 10px;
}
.code-img {
    display: block;
    margin-bottom: 18px;
    line-height: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
}
.code-img .imgcode {
    height: 46px;
    width: 130px;
    cursor: pointer;
}
/* 记住我 / 忘记密码 */
.opt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 20px;
    font-size: 13px;
    color: #94a3b8;
}
.forget-link {
    color: #94a3b8;
}
.forget-link:hover {
    color: #38bdf8;
}
.checkbox-custom {
    position: relative;
    padding-left: 26px;
    cursor: pointer;
    color: #94a3b8;
}
.checkbox-custom input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 0;
    margin: -8px 0 0 0;
    cursor: pointer;
    z-index: 2;
}
.checkbox-custom label:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -9px;
    width: 17px;
    height: 17px;
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(148, 163, 184, 0.1);
}
.checkbox-custom input[type="checkbox"]:checked + label:before {
    background: #2563eb;
    border-color: #2563eb;
}
.checkbox-custom input[type="checkbox"]:checked + label:after {
    content: "\e013";
    position: absolute;
    top: 50%;
    left: 3px;
    margin-top: -7px;
    font-family: 'Glyphicons Halflings';
    font-size: 11px;
    line-height: 1;
    color: #fff;
}
.checkbox-custom label {
    cursor: pointer;
    line-height: 1.4;
    font-weight: normal;
    margin-bottom: 0;
}
/* 登录按钮 */
.btn-login {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 6px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn-login:hover {
    filter: brightness(1.1);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}
.btn-login:active {
    transform: translateY(0);
}
/* 注册 */
.register-row {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}
.register-row a {
    color: #38bdf8;
}
/* 底部版权 */
.form-footer {
    margin-top: auto;
    padding-top: 22px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

/* ===================== 响应式 ===================== */
@media screen and (max-width: 768px) {
    .login-card {
        width: 420px;
    }
    .login-brand {
        display: none;
    }
    .login-form {
        padding: 40px 30px;
    }
}
@media screen and (max-width: 480px) {
    body.signin { overflow: auto; }
    .login-wrap { padding: 16px; }
    .login-card { width: 100%; }
    .code-group { flex-direction: column; align-items: stretch; }
    .code-img .imgcode { width: 100%; height: 46px; }
}
