/* ============================================================
   登录页 · 天蓝色主题 · 3D 动态 · 极速性能优化版
   ============================================================ */

/* ---------- 全局 ---------- */
.login-page-modern {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #e8f4ff;
    color: #1a3a5c;
    overflow-x: hidden;
    position: relative;
}

/* ---------- 顶部头部 ---------- */
.login-site-header {
    position: relative;
    z-index: 30;
    width: 100%;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,150,255,0.12);
}
.login-site-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.login-site-logo img { height: 30px; width: auto; }
.login-site-header-right { display: flex; align-items: center; gap: 14px; }
.login-header-text { font-size: 13px; color: rgba(60,120,180,0.7); }

.login-header-register {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(90deg, #0088ff, #00b4ff);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,136,255,0.3);
    transition: box-shadow 0.2s;
}
.login-header-register:hover { box-shadow: 0 4px 16px rgba(0,136,255,0.45); }

/* ---------- 背景层 ---------- */
.login-modern-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(125deg,
        #c8e6ff, #a8d4ff, #e0f0ff, #b8dbff, #d4ebff, #c8e6ff);
    background-size: 400% 400%;
    animation: bg-flow 20s ease infinite;
}
@keyframes bg-flow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-modern-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 45% at 15% 25%, rgba(0,150,255,0.35), transparent 60%),
        radial-gradient(ellipse 45% 40% at 85% 75%, rgba(100,180,255,0.28), transparent 55%);
    animation: bg-blob 22s ease-in-out infinite alternate;
    mix-blend-mode: multiply;
}
@keyframes bg-blob {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(2%, -2%) scale(1.05); }
}

.login-modern-bg::after {
    content: "";
    position: absolute;
    width: 800px; height: 800px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,180,255,0.1), transparent 65%);
    animation: halo-breath 10s ease-in-out infinite;
}
@keyframes halo-breath {
    0%, 100% { opacity: 0.7; transform: translate(-50%,-50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.06); }
}

/* ---------- Canvas 粒子层 ---------- */
#login-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ---------- 光晕球 ---------- */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.55;
    z-index: 2;
}
.orb-1 { width: 300px; height: 300px; top: -60px; left: -50px;
    background: radial-gradient(circle, #00a8ff, transparent 70%);
    animation: orb-float-1 14s ease-in-out infinite; }
.orb-2 { width: 260px; height: 260px; bottom: -60px; right: -50px;
    background: radial-gradient(circle, #66c2ff, transparent 70%);
    animation: orb-float-2 16s ease-in-out infinite; }
.orb-3 { display: none; }
.orb-4 { display: none; }

@keyframes orb-float-1 {
    0%, 100% { transform: translate(0,0); }
    50%      { transform: translate(40px, 30px); }
}
@keyframes orb-float-2 {
    0%, 100% { transform: translate(0,0); }
    50%      { transform: translate(-35px, -45px); }
}

/* ---------- 网格 ---------- */
.grid-pattern {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image:
        linear-gradient(rgba(0,150,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,150,255,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 50% 45% at 50% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 50% 45% at 50% 50%, #000 30%, transparent 80%);
    animation: grid-scroll 30s linear infinite;
}
@keyframes grid-scroll {
    0%   { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* ---------- 光点（只留 6 个） ---------- */
.login-modern-bg .dot { display: none; }
.login-modern-bg span.dot:nth-of-type(1),
.login-modern-bg span.dot:nth-of-type(3),
.login-modern-bg span.dot:nth-of-type(5),
.login-modern-bg span.dot:nth-of-type(7),
.login-modern-bg span.dot:nth-of-type(9),
.login-modern-bg span.dot:nth-of-type(2) {
    display: block;
    position: absolute;
    width: 4px; height: 4px;
    background: #00a8ff;
    border-radius: 50%;
    box-shadow: 0 0 8px 2px rgba(0,168,255,0.6);
    animation: dot-float 6s ease-in-out infinite;
    z-index: 4;
}
.login-modern-bg span.dot:nth-of-type(1) { top: 15%; left: 12%; }
.login-modern-bg span.dot:nth-of-type(3) { top: 40%; left: 65%; }
.login-modern-bg span.dot:nth-of-type(5) { top: 78%; left: 68%; }
.login-modern-bg span.dot:nth-of-type(7) { top: 10%; left: 50%; }
.login-modern-bg span.dot:nth-of-type(9) { top: 48%; left: 18%; }
.login-modern-bg span.dot:nth-of-type(2) { top: 72%; left: 30%;
    background: #33c5ff; box-shadow: 0 0 8px 2px rgba(51,197,255,0.5); }

@keyframes dot-float {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50%      { opacity: 1;   transform: translateY(-20px); }
}

/* ---------- 砍掉光线和浮动几何 ---------- */
.login-modern-bg .beam { display: none; }
.floating-shape { display: none; }

/* ---------- 主内容 ---------- */
.login-modern-inner {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 24px;
}
.login-modern-body { width: 100%; max-width: 420px; }

/* ---------- 卡片 ---------- */
.login-modern-panel {
    position: relative;
    padding: 42px 38px 32px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,1);
    box-shadow: 0 20px 50px rgba(0, 100, 200, 0.15);
    overflow: hidden;
}

.login-modern-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0088ff, #00d4ff, #33c5ff, #0088ff);
    background-size: 300% 100%;
    animation: top-gradient 8s linear infinite;
}
@keyframes top-gradient {
    0%   { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

/* ---------- 渐变色标题 ---------- */
.login-modern-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    line-height: 1.3;
}
.title-gradient {
    background: linear-gradient(90deg, #0066cc, #00a8ff, #00d4ff, #33c5ff, #0066cc);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: title-flow 6s linear infinite;
}
@keyframes title-flow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.login-modern-subtitle {
    margin: 0 0 30px;
    text-align: center;
    font-size: 13px;
    color: rgba(100, 140, 180, 0.7);
}

/* ---------- 表单（极速：无 transform） ---------- */
.login-modern-form { width: 100%; }
.login-row-field { margin-bottom: 14px; position: relative; }

.login-row-field .input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    background: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(0,150,255,0.18);
    border-radius: 6px;
    color: #1a3a5c;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    font-family: inherit;
}
.login-row-field .input::placeholder { color: rgba(140,180,220,0.6); }
/* focus 只改 border-color + box-shadow，**不做 transform** */
.login-row-field .input:focus {
    border-color: #00a8ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,168,255,0.1);
}

.login-row-captcha {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    align-items: center;
}
.login-row-captcha .input { 
	flex: 1; height: 46px; 
	    border: 1.5px solid rgba(0, 150, 255, 0.18);
		padding-left: 10px;
		border-radius: 6px;
}
.login-row-captcha .authcode {
    height: 46px;
    border-radius: 6px;
    border: 1.5px solid rgba(0,150,255,0.25);
    cursor: pointer;
    background: rgba(255,255,255,0.8);
}

.login-row-remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 13px;
    color: rgba(60,100,160,0.75);
}
.login-row-remember label { cursor: pointer; display: flex; align-items: center; gap: 6px; }
.login-row-remember .checkbox { accent-color: #00a8ff; width: 14px; height: 14px; }
.login-forgot { color: #0088ff; text-decoration: none; font-weight: 500; }
.login-forgot:hover { color: #0066cc; }

/* ---------- 登录按钮 ---------- */
.login-row-submit {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}
.login-modern-submit {
    width: 100%;
    height: 48px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #0088ff, #00b4ff, #00d4ff, #0088ff);
    background-size: 250% 100%;
    border-radius: 6px;
    transition: box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0,136,255,0.35);
    letter-spacing: 4px;
    font-family: inherit;
    animation: btn-bg-flow 5s linear infinite;
}
@keyframes btn-bg-flow {
    0%   { background-position: 0% 0; }
    100% { background-position: 250% 0; }
}
.login-row-submit::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: btn-sweep 3.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes btn-sweep {
    0%, 25%  { left: -60%; }
    55%, 100% { left: 120%; }
}
.login-modern-submit:hover {
    box-shadow: 0 6px 22px rgba(0,136,255,0.5);
}

/* ---------- 第三方登录 ---------- */
.login-oauth {
    border-top: 1px solid rgba(0,150,255,0.1);
    padding-top: 18px;
}
.login-oauth-label {
    display: block;
    text-align: center;
    font-size: 12px;
    color: rgba(100,140,180,0.55);
    margin-bottom: 14px;
    letter-spacing: 2px;
}
.login-oauth-btns { display: flex; justify-content: center; gap: 12px; }
.login-oauth-btn {
    display: inline-block;
    padding: 8px 28px;
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(0,150,255,0.2);
    color: #0066cc;
    background: rgba(255,255,255,0.7);
    transition: background 0.2s, color 0.2s;
}
.login-oauth-btn:hover {
    background: linear-gradient(90deg, #0088ff, #00b4ff);
    color: #fff;
    border-color: transparent;
}

/* ---------- 底部 ---------- */
.login-site-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 18px;
    text-align: center;
    font-size: 12px;
    color: rgba(80,130,180,0.55);
    background: rgba(255,255,255,0.4);
    border-top: 1px solid rgba(0,150,255,0.08);
}
.login-site-footer a { color: rgba(80,130,180,0.55); text-decoration: none; }
.login-site-footer a:hover { color: #0066cc; }

/* ---------- 旧模板兼容 ---------- */
.login-modern-lines, .login-rain-css, .login-rain, .login-confetti,
.clearfix, .clear, .formlogin table, .formlogin tr, .formlogin td,
.it-grid-bg, .it-radial, .it-login-layout, .it-story, .it-form-panel,
.mheader, .inner.it-inner {
    display: none !important;
}

/* ---------- 响应式 ---------- */
@media (max-width: 560px) {
    .login-modern-inner { padding: 24px 14px; }
    .login-modern-panel  { padding: 32px 20px 26px; border-radius: 12px; }
    .login-modern-title  { font-size: 22px; }
    .login-header-text   { display: none; }
}
