/* 物联网平台 · 科幻风格登录页 */
* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
}

body.signin {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #e8f6ff;
    min-height: 100vh;
    background: #030b18 url(images/login-bg.jpg) center 38% / cover no-repeat fixed;
    overflow-x: hidden;
}

/* 暗角与冷色氛围层 */
body.signin::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(1100px 620px at 50% 18%, rgba(12, 96, 160, .18), transparent 70%),
        linear-gradient(180deg, rgba(2, 8, 20, .42) 0%, rgba(2, 9, 22, .12) 38%, rgba(2, 7, 18, .88) 100%);
}

/* 极淡的扫描线 */
body.signin::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .22;
    background: repeating-linear-gradient(0deg, rgba(120, 210, 255, .055) 0 1px, transparent 1px 4px);
    mix-blend-mode: screen;
}

label.error {
    position: inherit !important;
    color: #ff9b9b !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    margin: 6px 0 0 2px !important;
    display: block;
}

.login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── 顶部状态栏 ── */
.topbar {
    height: 74px;
    flex: 0 0 74px;
    padding: 0 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(104, 190, 230, .16);
    background: linear-gradient(180deg, rgba(3, 12, 30, .78), rgba(3, 12, 30, .08));
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    position: relative;
    width: 44px;
    height: 48px;
    display: grid;
    place-items: center;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: linear-gradient(150deg, rgba(82, 224, 255, .95), rgba(30, 96, 220, .85));
    box-shadow: 0 0 24px rgba(45, 190, 255, .45);
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: 3px;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: #061629;
}

.brand-mark i {
    position: relative;
    z-index: 1;
    color: #6fe6ff;
    font-size: 20px;
    animation: corePulse 2.6s ease-in-out infinite;
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1.2;
    color: #f2fbff;
    text-shadow: 0 0 18px rgba(80, 200, 255, .35);
}

.brand-sub {
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: 3.5px;
    color: #6da7c4;
}

.top-status {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 11px;
    letter-spacing: 1.4px;
    color: #8fb6cb;
}

.status-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #43e6b0;
    box-shadow: 0 0 10px #43e6b0;
    animation: corePulse 2s ease-in-out infinite;
}

.status-dot.blue {
    background: #4fc9ff;
    box-shadow: 0 0 10px #4fc9ff;
}

/* ── 主体 ── */
.main {
    position: relative;
    flex: 1;
    display: grid;
    place-items: center;
    padding: 34px 20px 26px;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 780px;
    height: 780px;
    margin: -390px 0 0 -390px;
    border: 1px dashed rgba(90, 200, 255, .13);
    border-radius: 50%;
    pointer-events: none;
    animation: spin 60s linear infinite;
}

.orbit::before,
.orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.orbit::before {
    inset: 80px;
    border: 1px solid rgba(90, 200, 255, .08);
}

.orbit::after {
    inset: 190px;
    border: 1px dashed rgba(140, 120, 255, .10);
}

/* 外框用渐变模拟发光边框 */
.console {
    position: relative;
    z-index: 1;
    width: min(1060px, 96vw);
    padding: 1px;
    background: linear-gradient(135deg, rgba(92, 224, 255, .85), rgba(92, 224, 255, .10) 38%, rgba(110, 95, 255, .55));
    clip-path: polygon(0 20px, 20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px));
    filter: drop-shadow(0 24px 60px rgba(0, 0, 0, .62)) drop-shadow(0 0 22px rgba(40, 170, 255, .18));
}

.console-inner {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    background: linear-gradient(145deg, rgba(5, 21, 46, .94), rgba(3, 11, 26, .96));
    clip-path: polygon(0 20px, 20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px));
    overflow: hidden;
}

.console-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(110, 205, 255, .12) 3px 4px);
}

/* ── 左侧介绍 ── */
.hero {
    position: relative;
    padding: 52px 46px 46px;
    border-right: 1px solid rgba(102, 182, 220, .16);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 46px;
    bottom: 46px;
    width: 2px;
    background: linear-gradient(180deg, transparent, #43d4ff, transparent);
    box-shadow: 0 0 12px rgba(67, 212, 255, .7);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 3px;
    color: #56c9f5;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: #56c9f5;
    box-shadow: 0 0 8px #56c9f5;
}

.hero h1 {
    margin: 18px 0 6px;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 6px;
    line-height: 1.18;
    background: linear-gradient(100deg, #ffffff 0%, #a9e9ff 55%, #6fb7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 18px rgba(90, 200, 255, .25));
}

.hero h2 {
    margin: 0 0 20px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 5px;
    color: #5f9ab7;
}

.hero-desc {
    max-width: 440px;
    margin: 0;
    font-size: 13px;
    line-height: 2;
    color: #a3c2d6;
}

.features {
    margin-top: 30px;
    display: grid;
    gap: 13px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 13px;
}

.feature-icon {
    flex: 0 0 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(76, 202, 255, .34);
    background: rgba(28, 122, 180, .12);
    color: #5bd8ff;
    font-size: 15px;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.feature-text b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #d9eefb;
    letter-spacing: .5px;
}

.feature-text small {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #5c8da8;
}

.hero-stats {
    margin-top: 32px;
    display: flex;
    gap: 12px;
}

.stat {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid rgba(92, 178, 218, .16);
    background: rgba(10, 40, 74, .28);
}

.stat b {
    display: block;
    font-size: 17px;
    color: #6fe3ff;
    letter-spacing: 1px;
}

.stat span {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #6e97ad;
}

/* ── 右侧登录 ── */
.auth {
    position: relative;
    padding: 50px 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    margin-bottom: 30px;
    padding-left: 14px;
    border-left: 3px solid #3fc9ff;
}

.auth-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #eefaff;
}

.auth-sub {
    margin: 6px 0 0;
    font-size: 10px;
    letter-spacing: 3.2px;
    color: #5e94af;
}

.field {
    margin-bottom: 17px;
}

.field > label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    letter-spacing: 1px;
    color: #8fb6cc;
}

.input-wrap {
    position: relative;
}

.auth .form-control {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    border: 1px solid rgba(96, 170, 210, .28);
    border-radius: 3px;
    background: rgba(2, 13, 30, .72);
    color: #eefaff;
    font-size: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth .form-control::placeholder {
    color: #5d7d93;
}

.auth .form-control:focus {
    outline: none;
    border-color: #45cfff;
    background: rgba(4, 20, 42, .9);
    box-shadow: 0 0 0 3px rgba(69, 207, 255, .12), inset 0 0 20px rgba(69, 207, 255, .06);
}

.input-wrap > .fa {
    position: absolute;
    left: 15px;
    top: 15px;
    z-index: 2;
    color: #4fbde8;
    font-size: 15px;
}

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

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

.captcha-row .form-control {
    padding-left: 42px;
}

.imgcode {
    flex: 0 0 118px;
    width: 118px;
    height: 46px;
    border: 1px solid rgba(96, 170, 210, .32);
    border-radius: 3px;
    background: #fff;
    object-fit: cover;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

.imgcode:hover {
    border-color: #45cfff;
    box-shadow: 0 0 12px rgba(69, 207, 255, .35);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 24px;
    font-size: 12px;
    color: #8aafc4;
}

.auth-options a {
    color: #6dc9f2;
    text-decoration: none;
}

.auth-options a:hover {
    color: #a8e9ff;
    text-decoration: underline;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.remember input {
    accent-color: #35c5ff;
    vertical-align: middle;
}

.btn-login {
    position: relative;
    width: 100%;
    height: 48px;
    border: 0;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    background: linear-gradient(100deg, #0aa9d8 0%, #2f7cf4 55%, #6b5cff 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 9px;
    text-indent: 9px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(25, 120, 235, .32);
    transition: transform .2s, filter .2s, box-shadow .2s;
}

.btn-login::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-22deg);
    transition: left .55s;
}

.btn-login:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(25, 120, 235, .45);
}

.btn-login:hover::before {
    left: 120%;
}

.btn-login:active {
    transform: translateY(1px);
}

.auth-foot {
    margin-top: 18px;
    text-align: center;
    font-size: 11px;
    letter-spacing: .5px;
    color: #5e88a0;
}

.auth-foot a {
    color: #56c9f5;
    text-decoration: none;
}

.auth-foot a:hover {
    text-decoration: underline;
}

/* ── 页脚 ── */
.page-foot {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px 20px;
    font-size: 11px;
    letter-spacing: .5px;
    color: rgba(160, 200, 224, .62);
}

.page-foot a {
    color: #6dc9f2;
    text-decoration: none;
}

.page-foot a:hover {
    text-decoration: underline;
}

@keyframes corePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .55; transform: scale(.82); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media screen and (max-width: 900px) {
    .topbar { padding: 0 24px; }
    .top-status { display: none; }
    .console-inner { grid-template-columns: 1fr; }
    .hero { display: none; }
    .auth { padding: 40px 34px 36px; }
}

@media screen and (max-width: 560px) {
    .topbar { height: 62px; flex-basis: 62px; padding: 0 18px; }
    .brand-title { font-size: 17px; letter-spacing: 2px; }
    .brand-sub { letter-spacing: 2px; }
    .main { padding: 20px 12px; }
    .auth { padding: 32px 24px 30px; }
    .auth-title { font-size: 19px; }
    .imgcode { flex-basis: 96px; width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
    .orbit, .brand-mark i, .status-dot { animation: none; }
    .btn-login::before { transition: none; }
}
