html {
  min-height: 100%;
}

body.auth-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(38, 154, 182, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(62, 92, 224, 0.14), transparent 34%),
    linear-gradient(180deg, #f5fbfe 0%, #eef5f8 42%, #edf4f7 100%);
  color: #213047;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

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

body.auth-page:before {
  top: -120px;
  left: -80px;
  width: 360px;
  height: 360px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(35, 155, 183, 0.14), rgba(63, 90, 223, 0.1));
  transform: rotate(18deg);
}

body.auth-page:after {
  right: -120px;
  bottom: -130px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 90, 223, 0.12) 0%, rgba(63, 90, 223, 0) 72%);
}

.auth-page input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #f2f7fa inset !important;
  -webkit-text-fill-color: #213047 !important;
}

.auth-page .app {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 36px 0;
  background: transparent;
}

.auth-page .container.w-xxl.w-auto-xs {
  width: 460px;
  max-width: calc(100% - 48px);
  padding: 40px 0 28px;
}

.auth-page .navbar-brand {
  float: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  color: #0f243a;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.auth-page .navbar-brand:before {
  content: "恒";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0b7b91;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.auth-page .auth-intro {
  margin: 12px 0 24px;
  color: #63768b;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.auth-page .m-b-lg {
  position: relative;
  margin-bottom: 18px;
  padding: 30px 34px 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dbe7ee;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(18, 71, 104, 0.12);
  backdrop-filter: blur(14px);
}

.auth-page .m-b-lg:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #159ab5 0%, #3b5ee1 100%);
}

.auth-page .wrapper {
  padding: 0;
}

.auth-page .wrapper.text-center {
  margin: 0 0 24px;
}

.auth-page .wrapper.text-center strong {
  display: block;
  color: #162338;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.auth-page .m-b-lg > .wrapper:not(.text-center):not(.text-danger) {
  margin: -4px 0 18px;
  padding: 12px 14px;
  color: #5b6f86;
  font-size: 13px;
  line-height: 1.7;
  background: #f4fbfd;
  border: 1px solid #dbeaf0;
  border-radius: 10px;
}

.auth-page .text-danger.wrapper.text-center {
  margin: 0;
}

.auth-page .nav-tabs {
  display: flex;
  gap: 18px;
  margin: 0 0 22px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d5e0e8;
}

.auth-page .nav-tabs > li {
  float: none;
  flex: 1 1 0;
  width: auto !important;
  margin-bottom: -1px;
}

.auth-page .nav-tabs > li > a {
  min-height: 38px;
  padding: 0 0 12px;
  margin: 0;
  overflow: hidden;
  color: #66768a;
  font-size: 14px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0;
}

.auth-page .nav-tabs > li.active > a,
.auth-page .nav-tabs > li.active > a:focus,
.auth-page .nav-tabs > li.active > a:hover {
  color: #0b7b91;
  background: transparent;
  border-bottom-color: #0b7b91 !important;
}

.auth-page .tab-content {
  background: transparent;
  border: 0;
}

.auth-page .list-group.swaplogin {
  display: grid;
  gap: 0;
  margin-bottom: 22px;
  overflow: visible;
  border-radius: 0;
}

.auth-page .list-group-sm .list-group-item,
.auth-page .list-group-item {
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d5e0e8;
  border-radius: 0 !important;
}

.auth-page .list-group-item:first-child {
  border-top: 1px solid #d5e0e8;
}

.auth-page .list-group-item:focus-within {
  border-bottom-color: #0b7b91;
}

.auth-page .form-control {
  height: 48px;
  padding: 0 4px;
  color: #213047;
  font-size: 14px;
  line-height: 48px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.auth-page .form-control:focus {
  box-shadow: none;
}

.auth-page .form-control::placeholder {
  color: #8a98aa;
}

.auth-page select.form-control {
  padding-right: 0;
}

.auth-page .input-group {
  width: 100%;
}

.auth-page .input-group .form-control {
  min-width: 0;
}

.auth-page .input-group-addon {
  min-width: 92px;
  padding: 0 0 0 14px;
  color: #0b7b91;
  font-size: 13px;
  font-weight: 700;
  line-height: 48px;
  text-align: right;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.auth-page .input-group-addon:hover {
  color: #075d70;
}

.auth-page .input-group-addon[disabled],
.auth-page .input-group-addon[data-lock="true"] {
  color: #8a98aa;
  cursor: not-allowed;
}

.auth-page .checkbox {
  margin: 12px 0 24px;
  color: #526277;
  font-size: 14px;
}

.auth-page .checkbox a {
  color: #0b7b91;
  font-weight: 700;
}

.auth-page .i-checks input:checked + i {
  background-color: #0b7b91;
  border-color: #0b7b91;
}

.auth-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auth-page .btn-lg {
  height: 48px;
}

.auth-page .btn-block {
  display: flex;
  width: 100%;
}

.auth-page .btn-block + .btn-block {
  margin-top: 10px;
}

.auth-page .btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1197b1 0%, #0b7b91 100%);
  border-color: #0b7b91;
  box-shadow: 0 12px 26px rgba(11, 123, 145, 0.18);
}

.auth-page .btn-primary:hover,
.auth-page .btn-primary:focus {
  background: linear-gradient(135deg, #0e87a0 0%, #086579 100%);
  border-color: #086579;
  box-shadow: 0 14px 28px rgba(11, 123, 145, 0.22);
  transform: translateY(-1px);
}

.auth-page .btn-default {
  color: #304158;
  background: transparent;
  border-color: #c8d5df;
}

.auth-page .btn-default:hover,
.auth-page .btn-default:focus {
  color: #0b7b91;
  background: rgba(11, 123, 145, 0.05);
  border-color: #9dbec8;
}

.auth-page .line-dashed {
  margin: 20px 0 16px;
  border-color: #dce6ed;
}

.auth-page .form-group {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-page .form-group .btn {
  flex: 1 1 0;
  margin: 0 !important;
  overflow: hidden;
  color: #304158 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent !important;
  border-color: #c8d5df !important;
}

.auth-page .form-group .btn[style] {
  float: none !important;
}

.auth-page .form-group .btn:hover,
.auth-page .form-group .btn:focus {
  color: #0b7b91 !important;
  background: rgba(11, 123, 145, 0.05) !important;
  border-color: #9dbec8 !important;
}

.auth-page .form-group .btn i {
  color: inherit !important;
}

.auth-page .btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  line-height: 40px;
  border-radius: 6px;
}

.auth-page .btn-icon + .btn-icon {
  margin-left: 8px;
}

.auth-page .text-center small,
.auth-page .text-muted {
  color: #78889b !important;
}

.auth-page .text-center small a {
  color: #42556d;
  font-weight: 700;
}

.auth-page .text-center p {
  margin-bottom: 0;
}

.auth-page #captcha {
  min-height: 48px;
}

@media (min-width: 992px) {
  .auth-page .container.w-xxl.w-auto-xs {
    width: 500px;
  }

  .auth-page .m-b-lg {
    padding: 34px 38px 30px;
  }
}

@media (max-width: 480px) {
  .auth-page .container.w-xxl.w-auto-xs {
    width: 348px !important;
    max-width: calc(100vw - 32px);
    padding-top: 24px;
  }

  .auth-page .navbar-brand {
    font-size: 24px;
  }

  .auth-page .auth-intro {
    margin-bottom: 18px;
    font-size: 13px;
  }

  .auth-page .m-b-lg {
    padding: 24px 18px 20px;
    border-radius: 16px;
  }

  .auth-page .nav-tabs {
    gap: 10px;
  }

  .auth-page .nav-tabs > li > a {
    font-size: 12px;
  }

  .auth-page .input-group-addon {
    min-width: 78px;
    padding-left: 8px;
    font-size: 12px;
  }

  .auth-page .form-group {
    gap: 10px;
  }

  .auth-page .form-group .btn {
    padding-right: 10px;
    padding-left: 10px;
  }
}
