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

body {
    color: #172033;
    background:
        radial-gradient(circle at 16% 14%, rgba(35, 104, 216, .16), transparent 28%),
        radial-gradient(circle at 84% 78%, rgba(33, 183, 154, .14), transparent 30%),
        linear-gradient(135deg, #f6f9fd 0%, #eef4fb 52%, #f8fbff 100%) !important;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .45;
    background-image:
        linear-gradient(rgba(35, 104, 216, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(35, 104, 216, .07) 1px, transparent 1px);
    background-size: 44px 44px;
}

.app {
    min-height: 100vh;
    padding-top: 0 !important;
    background: transparent !important;
}

.container.w-xxl,
.container.w-auto-xs {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(460px, calc(100% - 32px)) !important;
    min-height: 100vh;
    padding: 34px 0;
}

.navbar-brand.block {
    float: none;
    display: block;
    height: auto;
    margin: 0 0 22px !important;
    color: #10203b !important;
    text-align: center;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: 0;
}

.m-b-lg {
    width: 100%;
    margin: 0 auto 18px !important;
    padding: 30px;
    border: 1px solid rgba(35, 104, 216, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 26px 70px rgba(25, 38, 61, .14), inset 0 1px rgba(255,255,255,.8);
    backdrop-filter: blur(16px);
}

.form-validation {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
}

.wrapper.text-center {
    padding-left: 0;
    padding-right: 0;
}

.wrapper.text-center strong {
    color: #20304a;
    font-size: 17px;
    font-weight: 900;
}

.nav-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 4px 0 18px;
    border: 0;
}

.form-validation .nav-tabs:before,
.form-validation .nav-tabs:after {
    content: none !important;
    display: none !important;
}

.nav-tabs > li {
    width: auto !important;
    float: none !important;
    display: block !important;
    margin: 0 !important;
    text-align: center;
}

.nav-tabs > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0 !important;
    border: 1px solid #d7e3f1 !important;
    border-radius: 10px !important;
    color: #526178;
    background: rgba(255,255,255,.72);
    font-weight: 900;
    white-space: normal;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus,
.nav-tabs > li > a:hover {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, #2368d8, #21b79a) !important;
    box-shadow: 0 12px 24px rgba(35, 104, 216, .2);
}

.tab-content {
    overflow: visible;
}

.list-group {
    width: 100%;
    margin-bottom: 18px;
}

.list-group-item {
    width: 100%;
    margin-bottom: 12px;
    border: 1px solid #d7e3f1 !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,.82) !important;
}

.swaplogin .list-group-item,
.form-validation .list-group-item {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 14px;
}

.form-control,
.input-group-addon {
    height: 46px;
    color: #172033;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.list-group-item .form-control {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.form-control::placeholder {
    color: #8797aa;
}

.input-group {
    width: 100%;
}

.input-group-addon {
    color: #1d65d8;
    font-weight: 900;
    white-space: nowrap;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #172033 !important;
}

.btn {
    min-height: 46px;
    border-radius: 10px !important;
    border: 1px solid #d7e3f1;
    font-weight: 900;
    box-shadow: none !important;
}

.btn-primary {
    width: 100%;
    border: 0 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #2368d8, #21b79a) !important;
    box-shadow: 0 16px 34px rgba(35, 104, 216, .22) !important;
}

.btn-default,
.btn-info,
.btn-danger {
    color: #41506a !important;
    background: rgba(255,255,255,.8) !important;
}

.btn-default:hover,
.btn-info:hover,
.btn-danger:hover {
    color: #1d65d8 !important;
    border-color: #b9c7d8;
    background: #fff !important;
}

.form-validation > .form-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
}

.form-validation > .form-group .btn {
    float: none !important;
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
}

.form-validation .btn-block + .btn-block {
    margin-top: 10px;
}

.form-validation .wrapper.text-center {
    clear: both;
}

.btn-icon {
    width: 48px;
    height: 48px;
    min-height: 48px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 4px;
    border-radius: 999px !important;
}

.btn-icon img {
    width: 24px;
    height: 24px;
}

#captcha {
    display: block;
    width: 100%;
    min-height: 50px;
}

#captcha_wait,
#captcha_text {
    color: #6b7a90;
}

.line-dashed {
    width: 100%;
    margin: 18px 0;
    border-color: rgba(35, 104, 216, .14) !important;
}

.text-muted,
.text-muted a,
small.text-muted {
    color: #6f8096 !important;
}

.container.w-xxl > .text-center,
.container.w-auto-xs > .text-center {
    text-align: center;
}

.checkbox,
.checkbox a {
    color: #526178;
}

.modal-content {
    border: 1px solid rgba(35, 104, 216, .14);
    border-radius: 16px;
    background: #fff;
    color: #172033;
    box-shadow: 0 24px 70px rgba(25, 38, 61, .18);
}

@media (max-width: 480px) {
    .container.w-xxl,
    .container.w-auto-xs {
        width: calc(100% - 24px) !important;
        padding: 20px 0;
    }

    .navbar-brand.block {
        font-size: 24px;
        margin-bottom: 16px !important;
    }

    .m-b-lg {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .nav-tabs {
        gap: 6px;
    }

    .nav-tabs > li > a {
        min-height: 42px;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 13px;
    }

    .form-validation > .form-group {
        flex-direction: column;
    }

    .form-validation > .form-group .btn {
        width: 100%;
    }

    .input-group-addon {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 12px;
    }
}
