@charset "utf-8";

html.login-html,
html.login-html body.login_body {
    width: 100% !important;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

.login_body {
    position: relative;
    background: #081a33;
    color: #eaf4ff;
    font-family: "Microsoft Yahei", "微软雅黑", Arial, sans-serif;
}

.login-bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.28), transparent 38%),
                radial-gradient(circle at 86% 72%, rgba(16, 185, 129, 0.18), transparent 42%),
                linear-gradient(130deg, #0a2f50 0%, #0c537a 40%, #0a3d6e 72%, #09253f 100%);
}

.login-bg-grid {
    position: absolute;
    inset: -120px;
    background-image: linear-gradient(rgba(125, 211, 252, 0.08) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(125, 211, 252, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, black 28%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, black 28%, transparent 78%);
}

.login-bg-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(56, 189, 248, 0.08) 42%, transparent 64%),
                linear-gradient(160deg, transparent 8%, rgba(16, 185, 129, 0.08) 30%, transparent 58%);
}

.login-fx-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.86;
}

.login-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 26px 18px;
}

.login-shell {
    width: min(1180px, 95vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
    align-items: stretch;
}

.login-visual,
.login-panel {
    border-radius: 22px;
    border: 1px solid rgba(186, 230, 253, 0.24);
    box-shadow: 0 20px 56px rgba(1, 12, 27, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.login-visual {
    background: linear-gradient(160deg, rgba(222, 244, 255, 0.16), rgba(103, 232, 249, 0.05));
    padding: 30px 30px 26px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 44px rgba(4, 22, 40, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.brand-title {
    margin: 0;
    font-size: 52px;
    letter-spacing: 3px;
    font-weight: 700;
    color: #f0f9ff;
    text-shadow: 0 6px 24px rgba(13, 55, 88, 0.45);
}

.brand-sub {
    margin: 14px 0 0;
    color: rgba(219, 234, 254, 0.96);
    font-size: 16px;
    letter-spacing: 1px;
}

.energy-hub {
    margin-top: 24px;
    position: relative;
    flex: 1;
    min-height: 380px;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 50%, rgba(191, 219, 254, 0.14), transparent 64%),
                linear-gradient(180deg, rgba(147, 197, 253, 0.14), rgba(6, 31, 52, 0.2));
    box-shadow: inset 0 0 0 1px rgba(186, 230, 253, 0.28), inset 0 -18px 30px rgba(3, 18, 34, 0.18);
}

.hub-links {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hub-links-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hub-link-path {
    fill: none;
    stroke: rgba(191, 219, 254, 0.9);
    stroke-width: 0.55;
    stroke-dasharray: 2.8 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.3));
    animation: hubDashFlow 3.2s linear infinite;
}

.hub-link-path--wind { animation-delay: -0.3s; }
.hub-link-path--mppt { animation-delay: -0.6s; }
.hub-link-path--station { animation-delay: -0.9s; }

@keyframes hubDashFlow {
    to { stroke-dashoffset: -12; }
}

.hub-core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 26px;
    padding: 12px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.26), rgba(125, 211, 252, 0.12));
    border: 1px solid rgba(186, 230, 253, 0.5);
    box-shadow: 0 16px 38px rgba(4, 24, 44, 0.36), 0 0 30px rgba(56, 189, 248, 0.26);
}

.hub-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
}

.hub-card {
    position: absolute;
    width: 132px;
    height: 120px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(226, 241, 255, 0.86);
    background: linear-gradient(160deg, rgba(240, 248, 255, 0.4), rgba(191, 225, 255, 0.26));
    box-shadow: 0 8px 16px rgba(34, 93, 134, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 0 22px rgba(125, 211, 252, 0.2);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: hubGlowPulse 3.6s ease-in-out infinite;
}

.hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(34, 93, 134, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 0 28px rgba(125, 211, 252, 0.28);
    animation-play-state: paused;
}

.hub-ico {
    width: 70px;
    height: 70px;
    object-fit: contain;
    opacity: 0.98;
    filter: brightness(1.68) saturate(1.58) contrast(1.24)
            drop-shadow(0 0 10px rgba(125, 211, 252, 0.34))
            drop-shadow(0 0 16px rgba(59, 130, 246, 0.24));
}

.hub-card--wind { animation-delay: -0.9s; }
.hub-card--mppt { animation-delay: -1.8s; }
.hub-card--station { animation-delay: -2.7s; }

@keyframes hubGlowPulse {
    0%, 100% {
        box-shadow: 0 8px 16px rgba(34, 93, 134, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 0 18px rgba(125, 211, 252, 0.16);
    }
    50% {
        box-shadow: 0 10px 18px rgba(34, 93, 134, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 0 30px rgba(125, 211, 252, 0.32);
    }
}

.hub-card--pv { left: 7%; top: 9%; }
.hub-card--wind { right: 7%; top: 10%; }
.hub-card--mppt { left: 10%; bottom: 10%; }
.hub-card--station { right: 9%; bottom: 10%; }

.login-panel {
    background: linear-gradient(170deg, rgba(7, 27, 50, 0.88), rgba(3, 20, 40, 0.84));
    padding: 34px 34px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.35;
    letter-spacing: 2px;
}

.panel-tip {
    margin: 12px 0 24px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.35);
    background: rgba(15, 41, 70, 0.42);
    color: rgba(219, 234, 254, 0.94);
    font-size: 14px;
    letter-spacing: 1px;
}

.login-error {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(252, 165, 165, 0.65);
    background: linear-gradient(145deg, rgba(185, 28, 28, 0.36), rgba(127, 29, 29, 0.24));
    color: #fff1f2;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 18px rgba(127, 29, 29, 0.28);
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-error.is-show {
    animation: loginErrorPop 0.24s ease-out;
}

@keyframes loginErrorPop {
    0% { transform: translateY(-4px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.login-error__icon {
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #991b1b;
    background: #fee2e2;
    box-shadow: 0 2px 6px rgba(127, 29, 29, 0.25);
    flex: 0 0 20px;
}

.login-error__text {
    flex: 1;
}

.field-row {
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.field-row--error {
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.8), 0 0 0 3px rgba(248, 113, 113, 0.18);
    background: rgba(255, 246, 246, 0.98);
}

.field-row {
    display: flex;
    align-items: center;
    height: 58px;
    border-radius: 12px;
    padding: 0 14px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28);
}

.field-row img {
    width: 22px;
    height: 22px;
    opacity: 0.55;
    margin-right: 10px;
}

.field-row input {
    border: 0;
    width: 100%;
    height: 100%;
    font-size: 17px;
    color: #0f172a;
    background: transparent;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.captcha-input-row {
    flex: 1;
    margin-bottom: 0;
}

.captcha-img {
    width: 190px;
    height: 56px;
    border-radius: 8px;
    border: 1px solid rgba(103, 232, 249, 0.48);
    cursor: pointer;
    object-fit: contain;
    background: linear-gradient(145deg, rgba(238, 253, 255, 0.98), rgba(219, 246, 255, 0.96));
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.16), 0 6px 14px rgba(2, 132, 199, 0.18);
}

.captcha-refresh {
    font-size: 13px;
    color: #38bdf8 !important;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(14, 41, 67, 0.52);
    white-space: nowrap;
}

.captcha-status {
    min-height: 20px;
    margin: 0 0 10px 4px;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.captcha-status--ok {
    color: #22c55e;
}

.captcha-status--error {
    color: #fda4af;
}

.log_btn--disabled {
    opacity: 0.62;
    filter: grayscale(12%);
    box-shadow: none;
}

.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 18px;
    padding: 8px 10px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(14, 41, 67, 0.62), rgba(10, 34, 58, 0.36));
    border: 1px solid rgba(125, 211, 252, 0.2);
}

.remember-label {
    color: rgba(226, 232, 240, 0.95);
    font-size: 15px;
    letter-spacing: 0.5px;
}

.toggle-wrap {
    width: 96px;
    height: 42px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(9, 43, 70, 0.95), rgba(20, 91, 140, 0.65));
    border: 1px solid rgba(125, 211, 252, 0.48);
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.18);
}

.log_slide {
    display: block;
    width: 48%;
    height: 34px;
    margin-top: 3px;
    line-height: 34px;
    border-radius: 17px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    background: linear-gradient(145deg, #e2e8f0, #ffffff);
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.28);
    transition: margin-left 0.2s ease, box-shadow 0.2s ease;
}

.slide_on { margin-left: 48%; }
.slide_off { margin-left: 4%; }

.slide_on:hover,
.slide_off:hover {
    box-shadow: 0 2px 12px rgba(56, 189, 248, 0.32);
}

.log_btn {
    display: block;
    width: 100%;
    height: 54px;
    line-height: 54px;
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    letter-spacing: 6px;
    color: #fff !important;
    background: linear-gradient(135deg, #22c55e, #10b981 48%, #059669);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.38);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.log_btn:hover {
    background: linear-gradient(135deg, #2dd36f, #14c38e 50%, #0a9f74);
    filter: brightness(1.02);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(16, 185, 129, 0.42);
}

.log_btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.34);
}

.login-footer {
    margin: 16px auto 0;
    text-align: center;
    font-size: 14px;
    color: rgba(226, 232, 240, 0.9);
}

.login-footer a { color: #bae6fd !important; }

@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: 1fr;
    }
    .energy-hub { min-height: 300px; }
    .hub-card { width: 130px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-fx-canvas { display: none; }
}
