html {
    min-height: 100%;
}

body.login.full-height-layout {
    min-height: 100vh;
    background: #edf2f7 url(../../image/login-background.jpg) no-repeat center fixed;
    background-size: cover;
    color: #17202a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

body.login:before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(243, 247, 248, .78);
    pointer-events: none;
}

.signin-shell {
    position: relative;
    z-index: 1;
    width: min(400px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 28px 0;
}

.signin-stage {
    max-width: 500px;
}

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

.brand-mark {
    position: relative;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #17202a;
    color: #39d6b4;
    font-size: 30px;
    font-weight: 800;
    box-shadow: none;
}

.brand-mark:after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 9px;
    width: 18px;
    height: 3px;
    border-radius: 99px;
    background: #f4bd3f;
}

.signin-brand h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.signin-brand p {
    margin: 9px 0 0;
    color: #596777;
    font-size: 15px;
}

.signin-copy {
    margin-top: 46px;
    padding-left: 22px;
    border-left: 3px solid #0f8b72;
}

.signin-copy span {
    display: block;
    color: #2f6fed;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.signin-copy strong {
    display: block;
    max-width: 420px;
    margin-top: 13px;
    color: #17202a;
    font-size: 30px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: 0;
}

.operation-lattice {
    position: relative;
    margin-top: 38px;
    display: grid;
    gap: 0;
    max-width: 430px;
}

.operation-lattice:before {
    content: "";
    position: absolute;
    top: 21px;
    bottom: 21px;
    left: 19px;
    width: 1px;
    background: linear-gradient(180deg, rgba(15, 139, 114, .2), rgba(47, 111, 237, .18));
}

.operation-item {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 10px 0;
}

.operation-item + .operation-item {
    border-top: 1px solid rgba(23, 32, 42, .08);
}

.operation-item i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    color: #0f8b72;
    box-shadow: 0 12px 26px rgba(23, 32, 42, .08);
}

.operation-item:nth-child(2) i {
    color: #2f6fed;
}

.operation-item:nth-child(3) i {
    color: #b87912;
}

.operation-item strong,
.operation-item span {
    display: block;
}

.operation-item strong {
    color: #17202a;
    font-size: 15px;
    font-weight: 800;
}

.operation-item span {
    margin-top: 6px;
    color: #667486;
    font-size: 13px;
    line-height: 1.5;
}

.signin-card {
    width: 100%;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 6px 28px rgba(23, 32, 42, .1);
}

.signin-title span {
    color: #0f8b72;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.signin-title h2 {
    margin: 8px 0 24px;
    color: #17202a;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
}

.field {
    position: relative;
    margin-bottom: 14px;
}

.field i {
    position: absolute;
    left: 15px;
    top: 50%;
    z-index: 2;
    color: #738194;
    transform: translateY(-50%);
}

.field .form-control {
    height: 46px;
    padding-left: 42px;
    border: 1px solid #d6dee8;
    border-radius: 4px;
    background: #fbfcfe;
    box-shadow: none;
    color: #17202a;
}

.field .form-control:focus {
    border-color: #0f8b72;
    box-shadow: 0 0 0 3px rgba(15, 139, 114, .14);
}

.captcha-line {
    display: grid;
    grid-template-columns: 1fr 112px;
    gap: 10px;
}

.captcha-field {
    margin-bottom: 0;
}

.captcha-image {
    height: 46px;
    display: block;
    overflow: hidden;
    border: 1px solid #d6dee8;
    border-radius: 8px;
    background: #fff;
}

.captcha-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.signin-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 16px 0 18px;
    color: #657386;
    font-size: 12px;
}

.default-account {
    white-space: nowrap;
}

.signin-button {
    width: 100%;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    background: #17202a;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.signin-button:hover,
.signin-button:focus {
    background: #0f8b72;
    color: #fff;
    box-shadow: 0 16px 34px rgba(15, 139, 114, .28);
    transform: translateY(-1px);
}

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

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

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

.checkbox-custom input[type="checkbox"]:checked + label:after {
    position: absolute;
    top: 50%;
    left: 3px;
    margin-top: -6px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    content: "\e013";
    color: #0f8b72;
    font-size: 11px;
    line-height: 1;
}

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

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

@media screen and (max-width: 880px) {
    .signin-shell {
        width: min(430px, calc(100% - 28px));
        min-height: 100vh;
        padding: 28px 0;
        display: block;
    }

    .signin-stage {
        max-width: none;
        margin-bottom: 24px;
    }

    .signin-brand h1 {
        font-size: 34px;
    }

    .signin-copy {
        margin-top: 24px;
    }

    .signin-copy strong {
        font-size: 24px;
    }

    .operation-lattice {
        display: none;
    }

    .signin-card {
        width: 100%;
        padding: 24px;
    }
}

@media screen and (max-width: 420px) {
    .signin-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .captcha-line {
        grid-template-columns: minmax(0, 1fr) 96px;
    }

    .captcha-image {
        width: 96px;
    }
}

body.login { overflow-y: auto; }
.signin-shell .field .form-control { padding-left: 42px; }
.field i { top: 23px; }
.checkbox-custom input:focus-visible + label:before { outline: 2px solid #167bab; outline-offset: 3px; }
@media screen and (max-width: 880px) {
    .signin-shell { display: flex; width: min(400px, calc(100% - 32px)); }
    .signin-stage { margin-bottom: 0; }
}
