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

body.enterprise-auth-page {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--page-bg);
}

body.auth-theme-login {
  --page-bg:
    radial-gradient(circle at top left, rgba(191, 219, 254, 0.9), transparent 34%),
    radial-gradient(circle at bottom right, rgba(221, 214, 254, 0.72), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #eef4ff 46%, #f7f9ff 100%);
  --layout-max-width: 1180px;
  --layout-min-height: 720px;
  --hero-flex: 1.1;
  --hero-padding: 64px 56px;
  --hero-bg: linear-gradient(160deg, rgba(99, 102, 241, 0.9), rgba(59, 130, 246, 0.72) 55%, rgba(34, 197, 246, 0.58) 100%);
  --hero-before-size: 240px;
  --hero-before-top: -80px;
  --hero-before-right: -40px;
  --hero-after-size: 180px;
  --hero-after-left: -40px;
  --hero-after-bottom: 48px;
  --hero-title-size: 40px;
  --hero-text-max-width: 420px;
  --panel-width: 460px;
  --panel-padding: 44px;
  --shell-padding: 32px;
  --button-bg: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --button-shadow: 0 14px 28px rgba(79, 70, 229, 0.22);
  --link-color: #4f46e5;
  --code-side-width: 126px;
  --footer-margin-top: 28px;
}

body.auth-theme-register {
  --page-bg:
    radial-gradient(circle at top left, rgba(199, 210, 254, 0.82), transparent 32%),
    radial-gradient(circle at bottom right, rgba(186, 230, 253, 0.68), transparent 30%),
    linear-gradient(135deg, #f7fbff 0%, #edf6ff 50%, #f8fbff 100%);
  --layout-max-width: 1360px;
  --layout-min-height: 840px;
  --hero-flex: 1;
  --hero-padding: 56px;
  --hero-bg: linear-gradient(160deg, rgba(99, 102, 241, 0.88), rgba(59, 130, 246, 0.68) 52%, rgba(34, 197, 246, 0.54) 100%);
  --hero-before-size: 280px;
  --hero-before-top: -100px;
  --hero-before-right: -60px;
  --hero-after-size: 180px;
  --hero-after-left: -40px;
  --hero-after-bottom: 60px;
  --hero-title-size: 42px;
  --hero-text-max-width: 460px;
  --panel-width: 640px;
  --panel-padding: 34px 32px;
  --shell-padding: 24px;
  --button-bg: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --button-shadow: 0 14px 28px rgba(79, 70, 229, 0.2);
  --link-color: #4f46e5;
  --code-side-width: 150px;
  --footer-margin-top: 22px;
}

body.auth-theme-password {
  --page-bg:
    radial-gradient(circle at top left, rgba(186, 230, 253, 0.82), transparent 32%),
    radial-gradient(circle at bottom right, rgba(199, 210, 254, 0.72), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 46%, #f9fbff 100%);
  --layout-max-width: 1160px;
  --layout-min-height: 760px;
  --hero-flex: 1;
  --hero-padding: 56px 52px;
  --hero-bg: linear-gradient(160deg, rgba(59, 130, 246, 0.86), rgba(37, 99, 235, 0.68) 54%, rgba(34, 211, 238, 0.52) 100%);
  --hero-before-size: 240px;
  --hero-before-top: -80px;
  --hero-before-right: -50px;
  --hero-after-size: 170px;
  --hero-after-left: -40px;
  --hero-after-bottom: 56px;
  --hero-title-size: 40px;
  --hero-text-max-width: 430px;
  --panel-width: 470px;
  --panel-padding: 42px 38px;
  --shell-padding: 28px;
  --button-bg: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --button-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
  --link-color: #2563eb;
  --code-side-width: 150px;
  --footer-margin-top: 26px;
}

.enterprise-auth-page .auth-shell {
  min-height: 100vh;
  padding: var(--shell-padding);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enterprise-auth-page .auth-layout {
  width: 100%;
  max-width: var(--layout-max-width);
  min-height: var(--layout-min-height);
  display: flex !important;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(224, 231, 255, 0.95) 0%, rgba(219, 234, 254, 0.95) 48%, rgba(255, 255, 255, 0.98) 48%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(199, 210, 254, 0.9);
  box-shadow: 0 30px 90px rgba(99, 102, 241, 0.18), 0 20px 50px rgba(148, 163, 184, 0.22);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.enterprise-auth-page #LAY-user-login {
  position: relative;
  left: auto;
  top: auto;
  padding: 0;
  box-sizing: border-box;
}

.enterprise-auth-page #LAY-user-login .layadmin-user-login-main {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.enterprise-auth-page #LAY-user-login .layadmin-user-login-box {
  padding: 0;
}

.enterprise-auth-page #LAY-user-login .layadmin-user-login-header {
  text-align: left;
}

.enterprise-auth-page #LAY-user-login .layadmin-user-login-footer {
  position: static;
  left: auto;
  bottom: auto;
  width: auto;
  padding: 0;
  line-height: inherit;
  text-align: left;
  color: inherit;
}

.enterprise-auth-page .auth-hero {
  position: relative;
  flex: var(--hero-flex);
  padding: var(--hero-padding);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--hero-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), inset -1px 0 0 rgba(255, 255, 255, 0.12);
}

.enterprise-auth-page .auth-hero:before,
.enterprise-auth-page .auth-hero:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.enterprise-auth-page .auth-hero:before {
  width: var(--hero-before-size);
  height: var(--hero-before-size);
  top: var(--hero-before-top);
  right: var(--hero-before-right);
}

.enterprise-auth-page .auth-hero:after {
  width: var(--hero-after-size);
  height: var(--hero-after-size);
  left: var(--hero-after-left);
  bottom: var(--hero-after-bottom);
}

.enterprise-auth-page .auth-hero-content,
.enterprise-auth-page .auth-hero-footer {
  position: relative;
  z-index: 1;
}

.enterprise-auth-page .auth-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 13px;
  letter-spacing: 1px;
}

.enterprise-auth-page .auth-hero h1 {
  margin: 24px 0 18px;
  font-size: var(--hero-title-size);
  line-height: 1.35;
  color: #fff;
  font-weight: 700;
}

.enterprise-auth-page .auth-hero p {
  margin: 0;
  max-width: var(--hero-text-max-width);
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
}

.enterprise-auth-page .auth-point-list,
.enterprise-auth-page .auth-feature-list,
.enterprise-auth-page .auth-tip-list {
  margin-top: 36px;
  display: grid;
  gap: 16px;
}

.enterprise-auth-page .auth-point,
.enterprise-auth-page .auth-feature,
.enterprise-auth-page .auth-tip {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.12);
}

.enterprise-auth-page .auth-point strong,
.enterprise-auth-page .auth-feature strong,
.enterprise-auth-page .auth-tip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: #fff;
}

.enterprise-auth-page .auth-point span,
.enterprise-auth-page .auth-feature span,
.enterprise-auth-page .auth-tip span {
  display: block;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
}

.enterprise-auth-page .auth-panel {
  width: var(--panel-width);
  background: rgba(255, 255, 255, 0.98);
  padding: var(--panel-padding);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: inset 1px 0 0 rgba(226, 232, 240, 0.95), -16px 0 32px rgba(99, 102, 241, 0.08);
}

.enterprise-auth-page .auth-panel-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}

.enterprise-auth-page .auth-panel-scroll::-webkit-scrollbar {
  width: 6px;
}

.enterprise-auth-page .auth-panel-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.55);
  border-radius: 999px;
}

.enterprise-auth-page .auth-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.enterprise-auth-page .auth-title {
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1.3;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.enterprise-auth-page .auth-subtitle {
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.8;
  color: #64748b;
}

.enterprise-auth-page .auth-section-title {
  margin: 28px 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.enterprise-auth-page .auth-form .layui-form-item {
  position: relative;
  margin-bottom: 18px;
}

.enterprise-auth-page.auth-theme-register .auth-form .layui-form-item {
  margin-bottom: 16px;
}

.enterprise-auth-page .auth-form .layui-input,
.enterprise-auth-page .auth-form .layui-form-select .layui-input {
  height: 50px;
  border-radius: 14px;
  border: 1px solid #d7e3f4;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 2px rgba(148, 163, 184, 0.08);
  transition: all .2s ease;
  box-sizing: border-box;
}

.enterprise-auth-page .auth-form > .layui-form-item > .layui-input,
.enterprise-auth-page .auth-form .layui-col-xs7 > .layui-input {
  padding-left: 52px;
}

.enterprise-auth-page .auth-form .layui-form-select .layui-input,
.enterprise-auth-page .auth-block-reset .layui-input {
  padding-left: 16px;
}

.enterprise-auth-page .auth-form .layui-input:focus,
.enterprise-auth-page .auth-form .layui-form-select .layui-input:focus {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.enterprise-auth-page.auth-theme-password .auth-form .layui-input:focus,
.enterprise-auth-page.auth-theme-password .auth-form .layui-form-select .layui-input:focus {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
  border-color: #3b82f6;
}

.enterprise-auth-page.auth-theme-login .auth-form .layui-input:focus,
.enterprise-auth-page.auth-theme-login .auth-form .layui-form-select .layui-input:focus,
.enterprise-auth-page.auth-theme-register .auth-form .layui-input:focus,
.enterprise-auth-page.auth-theme-register .auth-form .layui-form-select .layui-input:focus {
  border-color: #6366f1;
}

.enterprise-auth-page .auth-form .layadmin-user-login-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 18px;
  pointer-events: none;
  z-index: 2;
}

.enterprise-auth-page .auth-form .layui-btn {
  height: 50px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  background: var(--button-bg);
  box-shadow: var(--button-shadow), 0 10px 24px rgba(37, 99, 235, 0.12);
}

.enterprise-auth-page.auth-theme-login .auth-form .layui-btn {
  font-size: 16px;
}

.enterprise-auth-page .auth-form .layui-btn:hover {
  opacity: .95;
}

.enterprise-auth-page .auth-form .layui-btn.layui-btn-primary,
.enterprise-auth-page .auth-form .layui-btn[disabled] {
  background: #e2e8f0;
  color: #64748b;
  box-shadow: none;
  border: 1px solid #dbe4f0;
}

.enterprise-auth-page .auth-upload {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
}

.enterprise-auth-page .auth-upload .layui-btn {
  width: 100%;
}

.enterprise-auth-page .auth-upload .layui-upload-list {
  margin-top: 14px;
  text-align: center;
}

.enterprise-auth-page .auth-upload .layui-upload-img {
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 4px;
  box-sizing: border-box;
}

.enterprise-auth-page .auth-code-box,
.enterprise-auth-page .auth-code-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.enterprise-auth-page .auth-code-box .layui-col-xs7,
.enterprise-auth-page .auth-code-box .layui-col-xs5,
.enterprise-auth-page .auth-code-row .layui-col-xs7,
.enterprise-auth-page .auth-code-row .layui-col-xs5 {
  float: none;
  width: auto;
}

.enterprise-auth-page .auth-code-box .layui-col-xs7,
.enterprise-auth-page .auth-code-row .layui-col-xs7 {
  flex: 1;
  position: relative;
}

.enterprise-auth-page .auth-code-box .layui-col-xs5,
.enterprise-auth-page .auth-code-row .layui-col-xs5 {
  width: var(--code-side-width);
}

.enterprise-auth-page .auth-captcha {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: 1px solid #dbe4f0;
  object-fit: cover;
  background: #fff;
  cursor: pointer;
}

.enterprise-auth-page .auth-links,
.enterprise-auth-page .auth-footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.enterprise-auth-page .auth-links {
  margin-top: 4px;
}

.enterprise-auth-page.auth-theme-password .auth-links {
  margin-top: 2px;
}

.enterprise-auth-page .auth-footer-links {
  margin-top: 8px;
}

.enterprise-auth-page .auth-links a,
.enterprise-auth-page .auth-footer-links a {
  color: var(--link-color) !important;
  font-weight: 500;
}

.enterprise-auth-page .auth-footer {
  margin-top: var(--footer-margin-top);
  color: #94a3b8;
  text-align: left;
}

.enterprise-auth-page .auth-block-reset {
  margin-left: 0;
}

.enterprise-auth-page .auth-hidden-preview {
  display: none;
}

.enterprise-auth-page .layui-input::placeholder {
  color: #cbd5e1;
}

@media screen and (max-width: 1100px) {
  body.enterprise-auth-page.auth-theme-register .auth-layout {
    flex-direction: column;
  }

  body.enterprise-auth-page.auth-theme-register .auth-hero {
    padding: 40px 28px;
  }

  body.enterprise-auth-page.auth-theme-register .auth-panel {
    width: 100%;
    padding: 24px 20px;
  }

  body.enterprise-auth-page.auth-theme-register .auth-panel-scroll {
    overflow: visible;
    padding-right: 0;
  }
}

@media screen and (max-width: 980px) {
  body.enterprise-auth-page .auth-shell {
    padding: 18px;
  }

  body.enterprise-auth-page .auth-layout {
    flex-direction: column;
  }

  body.enterprise-auth-page .auth-hero {
    padding: 38px 28px;
  }

  body.enterprise-auth-page .auth-panel {
    width: 100%;
    padding: 30px 22px;
  }

  body.enterprise-auth-page .auth-hero h1 {
    font-size: 28px;
  }
}
