*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #101828;
    background: #f4f6fb;
}

.login-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(420px, 0.95fr) minmax(460px, 1.05fr);
    min-height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.72) 54%, #f7f9fc 100%),
        #f4f6fb;
}

.login-shell .layui-hide {
    display: none !important;
}

.login-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(16, 24, 40, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 40, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, #000 0, transparent 72%);
}

.brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 72px clamp(40px, 7vw, 112px);
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.34), transparent 28%),
        radial-gradient(circle at 84% 72%, rgba(20, 184, 166, 0.22), transparent 32%),
        linear-gradient(145deg, #0b1220 0%, #101827 52%, #201408 100%);
    overflow: hidden;
}

.brand-panel::before,
.brand-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.brand-panel::before {
    inset: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-panel::after {
    right: -80px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    background: linear-gradient(135deg, #f59e0b, #ef6c22);
    box-shadow: 0 22px 60px rgba(245, 158, 11, 0.28);
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.brand-kicker {
    margin: 0 0 14px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-content h1 {
    margin: 0;
    max-width: 520px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-copy {
    margin: 26px 0 0;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.8;
}

.brand-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 52px;
}

.brand-metrics div {
    min-height: 92px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.brand-metrics strong,
.brand-metrics span {
    display: block;
}

.brand-metrics strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
}

.brand-metrics span {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 13px;
}

.login-panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 72px clamp(28px, 6vw, 96px);
}

.login-card {
    width: 100%;
    max-width: 480px;
    padding: 44px;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 32px 90px rgba(16, 24, 40, 0.14);
}

.login-heading {
    margin-bottom: 34px;
}

.login-heading p {
    margin: 0 0 10px;
    color: #f59e0b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-heading h2 {
    margin: 0;
    color: #101828;
    font-size: 32px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: 0;
}

.login-heading span,
.login-heading em {
    display: block;
    margin-top: 12px;
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
    font-style: normal;
}

.login-heading em {
    display: inline-flex;
    padding: 6px 10px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    background: #fffbeb;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
}

.login-form {
    width: 100%;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.field .layui-input,
.field input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #d8dee9;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #101828;
    font-size: 15px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field .layui-input:hover,
.field input:hover {
    border-color: #b8c0cc;
}

.field .layui-input:focus,
.field input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.field .input-wrap {
    position: relative;
}

.field .input-wrap input {
    padding-right: 50px;
}

.toggle-pw {
    position: absolute;
    top: 50%;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #98a2b3;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.18s ease, background 0.18s ease;
}

.toggle-pw:hover {
    background: #f2f4f7;
    color: #101828;
}

.toggle-pw svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 12px;
}

.validateImg {
    width: 132px;
    height: 50px;
    border: 1px solid #d8dee9;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    background: #f8fafc;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 24px;
}

.remember {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #475467;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.remember::before {
    content: "";
    position: relative;
    display: inline-flex;
    width: 18px;
    height: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.remember.icon-check::before {
    border-color: #f59e0b;
    background: #f59e0b;
}

.remember.icon-check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.security-note {
    color: #98a2b3;
    font-size: 13px;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #f59e0b, #ef6c22);
    color: #fff;
    box-shadow: 0 16px 34px rgba(239, 108, 34, 0.28);
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(239, 108, 34, 0.34);
    filter: brightness(1.02);
}

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

.arrow-icon {
    width: 18px;
    height: 18px;
}

.login-footer {
    position: fixed;
    right: 28px;
    bottom: 20px;
    z-index: 3;
    color: #98a2b3;
    font-size: 12px;
    line-height: 1.6;
}

.login-footer a,
.login-footer span {
    color: inherit;
    text-decoration: none;
}

.login-footer a:hover {
    color: #667085;
}

.padding-5 {
    padding: 0 5px !important;
}

@media (max-width: 1024px) {
    body {
        overflow: auto;
    }

    .login-shell {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    .login-shell::before {
        mask-image: none;
    }

    .brand-panel {
        min-height: auto;
        padding: 42px 24px 34px;
    }

    .brand-panel::before {
        inset: 14px;
    }

    .brand-mark {
        width: 52px;
        height: 52px;
        margin-bottom: 26px;
        border-radius: 14px;
        font-size: 17px;
    }

    .brand-content h1 {
        font-size: 32px;
    }

    .brand-copy {
        margin-top: 16px;
        font-size: 14px;
    }

    .brand-metrics {
        margin-top: 26px;
    }

    .brand-metrics div {
        min-height: 78px;
        padding: 14px;
    }

    .login-panel {
        min-height: auto;
        padding: 28px 20px 84px;
    }

    .login-card {
        max-width: 560px;
        padding: 30px 24px;
    }

    .login-heading h2 {
        font-size: 26px;
    }

    .login-footer {
        right: 0;
        left: 0;
        bottom: 14px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .brand-metrics {
        grid-template-columns: 1fr;
    }

    .captcha-row {
        grid-template-columns: 1fr;
    }

    .validateImg {
        width: 100%;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}
