html {
    min-height: 100%;
}

body.signin {
    min-height: 100vh;
    margin: 0;
    color: #1f2937;
    background:
        linear-gradient(120deg, rgba(15, 23, 42, .82), rgba(18, 89, 87, .72)),
        url(../img/login-background.jpg) no-repeat center fixed;
    background-size: cover;
    font-family: "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

body.signin:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 42px 42px;
}

.signinpanel {
    position: relative;
    z-index: 1;
    width: min(1080px, calc(100% - 48px));
    min-height: 640px;
    margin: 7vh auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 420px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 28px 70px rgba(3, 10, 27, .32);
    backdrop-filter: blur(18px);
}

.signin-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px;
    color: #fff;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    max-width: 166px;
    height: auto;
}

.brand-badge {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .12);
    font-size: 12px;
}

.hero-copy {
    max-width: 620px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #90f0df;
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 0;
    color: #fff;
    font-size: 42px;
    line-height: 1.18;
    font-weight: 700;
}

.hero-desc {
    max-width: 560px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.8;
}

.hero-quote {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    margin-top: 28px;
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    color: #fef3c7;
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.hero-quote i {
    color: #fde68a;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 580px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .1);
}

.feature-item i {
    color: #a7f3d0;
}

.signin-card {
    display: flex;
    align-items: center;
    padding: 42px;
    background: rgba(255, 255, 255, .94);
}

.signin-card form {
    width: 100%;
}

.form-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.form-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: #047857;
    background: #d1fae5;
    font-size: 18px;
}

.form-title h2 {
    margin: 0 0 5px;
    color: #111827;
    font-size: 26px;
    font-weight: 700;
}

.form-title p {
    margin: 0;
    color: #6b7280;
}

.field-group {
    margin-bottom: 18px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.input-wrap {
    position: relative;
}

.input-wrap i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7c8a9a;
    z-index: 2;
}

.signinpanel .form-control {
    width: 100%;
    height: 46px !important;
    padding: 10px 14px 10px 42px !important;
    border: 1px solid #d7dde6;
    border-radius: 8px !important;
    color: #111827;
    background: #fff;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.signinpanel .form-control:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .12);
}

.signinpanel .uname,
.signinpanel .pword,
.signinpanel .code {
    background-image: none;
}

.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 10px;
}

.captcha-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border: 1px solid #d7dde6;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.captcha-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    margin: 2px 0 22px;
}

.register-link {
    color: #047857;
    font-weight: 700;
}

.register-link:hover,
.register-link:focus {
    color: #065f46;
    text-decoration: none;
}

.btn-login {
    height: 48px;
    margin-top: 0;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #059669, #0f766e);
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(5, 150, 105, .24);
}

.btn-login:hover,
.btn-login:focus {
    color: #fff;
    background: linear-gradient(135deg, #047857, #115e59);
}

.signup-footer {
    position: relative;
    z-index: 1;
    width: min(1080px, calc(100% - 48px));
    margin: 18px auto 0;
    color: rgba(255, 255, 255, .72);
    text-align: center;
    font-size: 12px;
}

.checkbox-custom {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding-left: 28px;
    margin: 0;
}

.checkbox-custom input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 50%;
    z-index: 2;
    width: 18px;
    height: 18px;
    margin: -9px 0 0;
    cursor: pointer;
    opacity: 0;
}

.checkbox-custom label {
    margin: 0;
    color: #4b5563;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.4;
}

.checkbox-custom label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
}

.checkbox-custom input[type="checkbox"]:checked + label:before {
    border-color: #059669;
    background: #059669;
}

.checkbox-custom input[type="checkbox"]:checked + label:after {
    content: "\e013";
    position: absolute;
    left: 3px;
    top: 50%;
    margin-top: -6px;
    color: #fff;
    font-family: "Glyphicons Halflings";
    font-size: 11px;
    line-height: 1;
}

label.error {
    display: block;
    margin: 7px 0 0;
    color: #dc2626;
    font-size: 12px;
    font-weight: 400;
}

body .layer-ext-moon-msg[type="dialog"] {
    min-width: 100px !important;
}

body .layer-ext-moon-msg {
    border: none;
    color: #fff;
    background-color: rgba(0, 0, 0, .72);
}

body .layer-ext-moon-msg .layui-layer-content {
    padding: 12px 25px;
    text-align: center;
}

@media screen and (max-width: 900px) {
    .signinpanel {
        grid-template-columns: 1fr;
        min-height: auto;
        margin-top: 24px;
    }

    .signin-hero {
        padding: 34px;
        gap: 32px;
    }

    .hero-copy h1 {
        font-size: 30px;
    }

    .signin-card {
        padding: 32px;
    }
}

@media screen and (max-width: 560px) {
    .signinpanel,
    .signup-footer {
        width: calc(100% - 28px);
    }

    .signin-hero {
        padding: 26px 22px;
    }

    .brand-block {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .signin-card {
        padding: 26px 20px;
    }

    .captcha-row {
        grid-template-columns: 1fr;
    }

    .captcha-box {
        width: 150px;
    }
}
