html {
    height: 100%;
}

body.login {
    --cyan-50: #ecfeff;
    --cyan-100: #cffafe;
    --cyan-300: #67e8f9;
    --cyan-400: #22d3ee;
    --cyan-500: #14b8a6;
    --cyan-600: #0d9488;
    --cyan-700: #0f766e;
    --cyan-900: #134e4a;
    --ink-950: #041014;
    --ink-900: #062025;
    --ink-800: #0a2f33;
    --panel: rgba(255, 255, 255, 0.97);
    --line: rgba(6, 32, 37, 0.1);
    --text: #0f2a2e;
    --muted: #5f7378;
    min-height: 100%;
    height: auto;
    margin: 0;
    overflow-x: hidden;
    color: var(--cyan-50);
    font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(ellipse 80% 60% at 20% 15%, rgba(34, 211, 238, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 55% at 85% 80%, rgba(20, 184, 166, 0.16), transparent 50%),
        linear-gradient(145deg, var(--ink-950) 0%, var(--ink-900) 38%, #07363a 72%, var(--ink-800) 100%);
}

body.login::before,
body.login::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

body.login::before {
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 85% 75% at 30% 40%, #000 20%, transparent 75%);
    opacity: 0.35;
}

body.login::after {
    width: 520px;
    height: 520px;
    right: -120px;
    top: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, transparent 68%);
    animation: login-orbit 14s ease-in-out infinite alternate;
}

@keyframes login-orbit {
    from { transform: translate(0, 0) scale(1); opacity: 0.65; }
    to { transform: translate(-30px, 24px) scale(1.08); opacity: 1; }
}

@keyframes login-rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes login-brand-rise {
    from { opacity: 0; transform: translateY(36px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes login-emblem-float {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

.login-panel {
    position: relative;
    z-index: 1;
    width: min(1280px, 94vw);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 0;
}

.login-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 440px);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    animation: login-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-brand {
    padding: 24px 12px;
    overflow: visible;
    animation: login-brand-rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-logo-wrap {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 36px);
    margin-bottom: 32px;
    overflow: visible;
}

.login-logo-emblem {
    width: clamp(88px, 12vw, 132px);
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 16px 32px rgba(20, 184, 166, 0.35));
    animation: login-emblem-float 5s ease-in-out infinite alternate;
}

.login-logo-text {
    display: inline-block;
    margin: 0;
    padding: 0.04em 0 0.14em;
    font-size: clamp(72px, 11vw, 128px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    background: linear-gradient(180deg, #ecfeff 8%, #67e8f9 42%, #14b8a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 8px 24px rgba(20, 184, 166, 0.25));
    overflow: visible;
}

.login-logo-tagline {
    margin: 0;
    padding-top: 4px;
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 500;
    letter-spacing: 0.38em;
    text-indent: 0.38em;
    color: rgba(236, 254, 255, 0.92);
}

.login-panel .section {
    width: 100%;
    margin: 0;
}

.login-form-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 24px;
    padding: 44px 40px 40px;
    box-shadow:
        0 28px 60px rgba(4, 16, 20, 0.35),
        0 0 0 1px rgba(20, 184, 166, 0.08) inset;
}

.login-form-title {
    color: var(--text);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.login-form-desc {
    margin: 10px 0 28px;
    color: var(--muted);
    font-size: 14px;
}

.login-panel .form-control {
    display: block;
    height: 50px;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: none;
    background-color: #f8fbfb;
    color: var(--text);
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-panel .form-control:focus {
    background-color: #fff;
    border-color: rgba(13, 148, 136, 0.55);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.login-panel .uname {
    background: #f8fbfb url(../../image/user.png) no-repeat calc(100% - 16px) center;
    padding-right: 46px;
}

.login-panel .pword {
    background: #f8fbfb url(../../image/locked.png) no-repeat calc(100% - 16px) center;
    padding-right: 46px;
}

.login-panel .code {
    margin: 0;
    background: #f8fbfb;
}

.captcha-row {
    margin-top: 14px;
    margin-left: -8px;
    margin-right: -8px;
}

.captcha-row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.captcha-image-wrap {
    display: flex;
    align-items: stretch;
}

.captcha-image-wrap a {
    display: block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}

.captcha-image-wrap img {
    display: block;
    width: 100%;
    height: 50px;
    object-fit: cover;
}

.login-panel .btn.login-submit,
.login-panel .btn-success {
    margin-top: 22px;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 55%, #0f766e 100%);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    box-shadow: 0 12px 28px rgba(13, 148, 136, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-panel .btn.login-submit:hover,
.login-panel .btn.login-submit:focus,
.login-panel .btn-success:hover,
.login-panel .btn-success:focus {
    background: linear-gradient(135deg, #5eead4 0%, #14b8a6 50%, #0d9488 100%);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(13, 148, 136, 0.34);
}

.login-footer {
    display: none;
}

.layui-layer-content {
    color: #676a6c;
}

.checkbox-custom {
    position: relative;
    padding: 0 15px 0 25px;
    margin: 18px 0 0;
    display: inline-block;
}

.checkbox-custom input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    cursor: pointer;
    z-index: 2;
    margin: -6px 0 0 0;
    top: 50%;
    left: 3px;
}

.checkbox-custom label:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -9px;
    width: 18px;
    height: 17px;
    display: inline-block;
    border-radius: 4px;
    border: 1px solid #b7c9cc;
    background: #fff;
}

.checkbox-custom input[type="checkbox"]:checked + label:after {
    position: absolute;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    content: "\e013";
    top: 42%;
    left: 3px;
    margin-top: -5px;
    font-size: 11px;
    line-height: 1;
    width: 16px;
    height: 16px;
    color: var(--cyan-700);
}

.checkbox-custom label {
    cursor: pointer;
    line-height: 1.2;
    font-weight: normal;
    margin-bottom: 0;
    text-align: left;
    color: var(--muted);
}

@media screen and (max-width: 1024px) {
    .login-stage {
        grid-template-columns: 1fr;
        gap: 36px;
        max-width: 480px;
        margin: 0 auto;
    }

    .login-brand {
        text-align: center;
        padding-bottom: 8px;
    }

    .login-logo-wrap {
        justify-content: center;
        margin-bottom: 20px;
    }

    .login-logo-text {
        letter-spacing: 0.1em;
        text-indent: 0.1em;
    }

    .login-logo-tagline {
        letter-spacing: 0.28em;
        text-indent: 0.28em;
    }
}

@media screen and (max-width: 480px) {
    .login-panel {
        width: 100%;
        padding: 24px 16px;
    }

    .login-form-card {
        padding: 32px 22px 28px;
        border-radius: 18px;
    }

    .login-logo-wrap {
        flex-direction: column;
        gap: 12px;
    }

    .login-logo-emblem {
        width: 76px;
    }
}
