/* Volcengine console login — master + tenant shared (ref: console.volcengine.com) */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body.sutui-volc-login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1d2129;
  background: linear-gradient(90deg, #eef5ff 0%, #f3f0ff 42%, #f7f9ff 100%);
  background-attachment: fixed;
}

/* ── Top nav ── */
.sutui-login-top-nav {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}
.sutui-login-top-nav a {
  font-size: 13px;
  color: #1664ff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background .2s, color .2s;
}
.sutui-login-top-nav a:hover { background: rgba(22, 100, 255, .06); }
.sutui-login-top-nav a.is-current {
  color: #1d2129;
  font-weight: 600;
  pointer-events: none;
}
.sutui-login-top-nav .sutui-login-top-nav-sep { color: #e5e6eb; font-size: 12px; }

/* ── Logo header ── */
.header-container {
  position: fixed;
  top: 22px;
  left: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }
.login-titlef {
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
  letter-spacing: .2px;
}

/* ── Page layout ── */
.sutui-volc-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 48px 96px;
  min-height: 100vh;
}
.sutui-volc-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 96px;
  width: 100%;
  max-width: 1360px;
}

/* ── Left marketing (Volc banner + feature cards) ── */
.sutui-volc-left { flex: 1; max-width: 640px; min-width: 0; }
.sutui-volc-left-title {
  font-size: 40px;
  font-weight: 700;
  color: #0c0d0e;
  line-height: 1.35;
  margin: 0 0 12px;
  letter-spacing: -.3px;
}
.sutui-volc-left-title .sutui-volc-star {
  color: #1664ff;
  margin-left: 8px;
  font-size: 26px;
  vertical-align: middle;
}
.sutui-volc-left-sub {
  font-size: 17px;
  color: #86909c;
  margin: 0 0 32px;
  line-height: 1.65;
}
.sutui-volc-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.sutui-volc-feature-card {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 12px;
  padding: 20px 20px 22px;
  min-height: 152px;
  transition: box-shadow .2s;
}
.sutui-volc-feature-card:hover {
  box-shadow: 0 4px 16px rgba(22, 100, 255, .06);
}
.sutui-volc-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: #86909c;
}
.sutui-volc-feature-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.sutui-volc-feature-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
  line-height: 1.4;
}
.sutui-volc-feature-card p {
  margin: 0;
  font-size: 14px;
  color: #86909c;
  line-height: 1.6;
}

/* ── Login card ── */
.sutui-volc-card {
  flex: 0 0 520px;
  width: 520px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
  padding: 44px 44px 32px;
  position: relative;
}
.sutui-volc-card-title {
  font-size: 26px;
  font-weight: 600;
  color: #1d2129;
  margin: 0 0 28px;
  text-align: left;
  line-height: 1.4;
}

/* Main tabs */
.sutui-volc-main-tabs {
  display: flex;
  gap: 36px;
  border-bottom: 1px solid #e5e6eb;
  margin-bottom: 28px;
}
.sutui-volc-main-tab {
  border: none;
  background: transparent;
  padding: 0 0 14px;
  font-size: 17px;
  color: #86909c;
  cursor: pointer;
  position: relative;
  transition: color .2s;
  line-height: 1.4;
}
.sutui-volc-main-tab:hover { color: #4e5969; }
.sutui-volc-main-tab.is-active {
  color: #1664ff;
  font-weight: 500;
}
.sutui-volc-main-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #1664ff;
  border-radius: 1px;
}
.sutui-volc-main-tabs--triple {
  gap: 22px;
}
.sutui-volc-main-tabs--triple .sutui-volc-main-tab {
  font-size: 15px;
  padding-bottom: 12px;
}
.sutui-volc-tenant-agreement {
  margin: 4px 0 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  max-height: 120px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.6;
  color: #4e5969;
}
.sutui-volc-tenant-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  cursor: pointer;
  color: #4e5969;
}
.sutui-volc-tenant-agree input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #1664ff;
  cursor: pointer;
}
.sutui-volc-btn-primary--tenant-apply.is-disabled,
.sutui-volc-btn-primary--tenant-apply:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.sutui-volc-main-panel { display: none; }
.sutui-volc-main-panel.is-active { display: block; }

/* Inputs — Volcengine Arco-like */
.sutui-volc-field { margin-bottom: 18px; position: relative; }
.sutui-volc-form .layui-form-item { margin-bottom: 0 !important; }

.sutui-volc-input,
.sutui-volc-form input.sutui-volc-input,
.sutui-volc-form input[type="text"].sutui-volc-input,
.sutui-volc-form input[type="password"].sutui-volc-input,
.sutui-volc-form input[type="tel"].sutui-volc-input,
.sutui-volc-form input[type="email"].sutui-volc-input {
  display: block;
  width: 100%;
  height: 44px;
  line-height: 44px;
  padding: 0 16px;
  font-size: 15px;
  color: #1d2129;
  background: #fff !important;
  border: 1px solid #e5e6eb !important;
  border-radius: 4px;
  outline: none;
  box-shadow: none !important;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.sutui-volc-input::placeholder { color: #c9cdd4; }
.sutui-volc-input:hover {
  border-color: #c9cdd4 !important;
}
.sutui-volc-input:focus {
  border-color: #1664ff !important;
  box-shadow: 0 0 0 2px rgba(22, 100, 255, .12) !important;
}

.sutui-volc-input-wrap { position: relative; }
.sutui-volc-input-wrap .sutui-volc-input { padding-right: 36px; }
.sutui-volc-pwd-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  color: #c9cdd4;
  padding: 2px;
  line-height: 0;
}
.sutui-volc-pwd-toggle:hover { color: #86909c; }
.sutui-volc-pwd-toggle svg { width: 16px; height: 16px; fill: currentColor; }

.sutui-volc-row { display: flex; gap: 8px; align-items: center; overflow: visible; }
.sutui-volc-row .sutui-volc-field { flex: 1; margin-bottom: 18px; min-width: 0; }
.sutui-volc-captcha-row .sutui-volc-field { position: relative; z-index: 1; }
.sutui-volc-captcha-wrap {
  flex: 0 0 124px;
  width: 124px;
  min-width: 124px;
  height: 44px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  align-self: flex-start;
}
.sutui-volc-captcha-img {
  display: block;
  width: 100%;
  height: 44px;
  border-radius: 4px;
  border: 1px solid #e5e6eb;
  cursor: pointer;
  object-fit: cover;
  background: #f7f8fa;
  visibility: visible;
}

.sutui-volc-sms-btn {
  flex: 0 0 128px;
  height: 44px;
  border: 1px solid #e5e6eb;
  background: #fff;
  color: #1664ff;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
  padding: 0 8px;
}
.sutui-volc-sms-btn:hover:not(:disabled) {
  background: rgba(22, 100, 255, .04);
  border-color: #1664ff;
}
.sutui-volc-sms-btn:disabled { opacity: .5; cursor: not-allowed; color: #86909c; }

/* Terms */
.sutui-volc-terms {
  font-size: 12px;
  color: #86909c;
  line-height: 1.65;
  margin: 2px 0 12px;
}
.sutui-volc-terms a { color: #1664ff; text-decoration: none; }
.sutui-volc-terms a:hover { text-decoration: underline; }

.sutui-volc-remember { display: none; }

/* Primary button */
.sutui-volc-btn-primary {
  display: block;
  width: 100%;
  height: 44px;
  line-height: 44px;
  border: none;
  border-radius: 4px;
  background: #1664ff;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
  padding: 0;
  text-align: center;
}
.sutui-volc-btn-primary:hover { background: #0e52d9; }
.sutui-volc-btn-primary:active { background: #0a42b3; }

/* Helper links */
.sutui-volc-helper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
}
.sutui-volc-helper a { color: #1664ff; text-decoration: none; }
.sutui-volc-helper a:hover { text-decoration: underline; }
.sutui-volc-helper--single { justify-content: center; }
.sutui-volc-helper-sep { color: #e5e6eb; font-size: 12px; user-select: none; }

/* Register bottom */
.sutui-volc-register-bottom {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #86909c;
}
.sutui-volc-register-bottom a {
  color: #1664ff;
  text-decoration: none;
  font-weight: 500;
}
.sutui-volc-register-bottom a:hover { text-decoration: underline; }

/* OAuth divider + icon row (Volcengine style — 36px brand icons) */
.sutui-login-oauth-wrap {
  margin-top: 24px;
  padding-top: 2px;
}
.sutui-login-oauth-divider {
  text-align: center;
  color: #86909c;
  font-size: 13px;
  margin: 0 0 16px;
  position: relative;
}
.sutui-login-oauth-divider span {
  background: #fff;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}
.sutui-login-oauth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #e5e6eb;
}
.sutui-login-oauth-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.sutui-login-oauth-grid--icons .sutui-oauth-label { display: none; }
.sutui-login-oauth-grid--icons .sutui-oauth-item {
  min-width: auto;
  padding: 0;
}
.sutui-oauth-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  transition: transform .15s ease;
}
.sutui-oauth-item:hover { transform: translateY(-1px); }
.sutui-oauth-item.is-active .sutui-oauth-icon--brand {
  box-shadow: 0 0 0 2px rgba(22, 100, 255, .22);
}
.sutui-oauth-icon--brand {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e6eb;
  transition: box-shadow .2s, border-color .2s;
  flex-shrink: 0;
}
.sutui-oauth-icon--brand img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}
.sutui-oauth-item:hover .sutui-oauth-icon--brand {
  border-color: #c9cdd4;
}
.sutui-oauth-label { display: none; }

/* Alternate panels */
.sutui-login-panels { min-height: 180px; position: relative; }
.sutui-login-panel { display: none; animation: sutuiPanelIn .2s ease; }
.sutui-login-panel.is-active { display: block; }
@keyframes sutuiPanelIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.sutui-volc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: #1664ff;
  font-size: 14px;
  cursor: pointer;
  padding: 0 0 12px;
  margin-bottom: 4px;
}
.sutui-volc-back-link:hover { text-decoration: underline; }

.sutui-volc-subpanel-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: #1d2129;
  line-height: 1.4;
}
.sutui-volc-subpanel-desc {
  margin: 0 0 18px;
  font-size: 13px;
  color: #86909c;
  line-height: 1.65;
}
.sutui-volc-subpanel-desc--warn {
  color: #8a6a3a;
  background: #fff7e8;
  border: 1px solid #ffdd99;
  border-radius: 6px;
  padding: 10px 12px;
}
.sutui-volc-subpanel-desc--tip {
  margin-top: -6px;
  color: #4e5969;
  background: #f7f8fa;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  padding: 10px 12px;
}
.sutui-volc-oauth-head { margin-bottom: 4px; }
.sutui-volc-oauth-tabs { margin-bottom: 20px; }
.sutui-volc-register-inline {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #86909c;
}
.sutui-volc-register-inline a {
  color: #1664ff;
  text-decoration: none;
  font-weight: 500;
}
.sutui-volc-register-inline a:hover { text-decoration: underline; }
#sutui-inline-bind-captcha-img,
#sutui-inline-reg-captcha-img { cursor: pointer; }

.sutui-volc-card--alt .sutui-volc-main-tabs,
.sutui-volc-card--alt .sutui-volc-register-bottom { display: none; }

/* OAuth QR / panels */
.sutui-oauth-qr-panel { text-align: center; padding: 4px 0; }
.sutui-oauth-qr-title { font-size: 16px; font-weight: 600; color: #1d2129; margin-bottom: 6px; }
.sutui-oauth-qr-desc { font-size: 13px; color: #86909c; margin-bottom: 14px; line-height: 1.5; }
.sutui-oauth-qr-box {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f8fa;
  border-radius: 8px;
  margin: 0 auto;
  max-width: 280px;
}
.sutui-oauth-qr-box--wechat iframe { width: 260px !important; height: 220px !important; border: 0; }
.sutui-oauth-qr-loading { color: #86909c; font-size: 13px; padding: 36px 0; }
.sutui-oauth-qr-refresh {
  margin-top: 10px;
  border: none;
  background: transparent;
  color: #1664ff;
  font-size: 12px;
  cursor: pointer;
}
.sutui-oauth-qr-refresh:hover { text-decoration: underline; }

.sutui-qq-qr-wrap {
  width: 260px; height: 280px; overflow: hidden; margin: 0 auto;
  border-radius: 8px; background: #fff; position: relative;
}
.sutui-qq-qr-inner { width: 420px; height: 560px; margin: -80px 0 0 -78px; }
.sutui-qq-qr-inner iframe { width: 420px; height: 560px; border: 0; }

.sutui-oauth-scan-box {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f8fa;
  border-radius: 8px;
}
.sutui-oauth-scan-box img { width: 148px; height: 148px; border-radius: 6px; }
.sutui-oauth-scan-tip { font-size: 12px; color: #86909c; text-align: center; margin-top: 8px; }

.sutui-oauth-account-subpanel { display: none; }
.sutui-oauth-account-subpanel.is-active { display: block; }

.sutui-volc-error {
  margin: 0 0 10px;
  color: #f53f3f;
  font-size: 13px;
  text-align: center;
}

/* Footer — page bottom center */
.sutui-volc-footer {
  flex-shrink: 0;
  text-align: center;
  padding: 12px 24px 20px;
  font-size: 12px;
  color: #86909c;
  line-height: 1.85;
}
.sutui-volc-footer a {
  color: #86909c;
  text-decoration: none;
}
.sutui-volc-footer a:hover { color: #1664ff; }
.sutui-volc-footer .logos {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin: -2px 3px 0 0;
}

/* Layui checkbox inside card */
.sutui-volc-card .layui-form-checkbox[lay-skin=primary] span {
  color: #4e5969;
  font-size: 13px;
  padding-left: 22px;
}
.sutui-volc-card .layui-form-checked[lay-skin=primary] i {
  border-color: #1664ff !important;
  background-color: #1664ff !important;
}
.sutui-volc-card .layui-form-checkbox[lay-skin=primary] i {
  width: 14px;
  height: 14px;
  border-radius: 2px;
}

/* Hide legacy layout */
.layadmin-user-login { padding: 0 !important; background: transparent !important; min-height: auto !important; display: block !important; }
.layadmin-user-login-main { width: auto !important; margin: 0 !important; max-width: none !important; display: contents !important; }
.header-boxo, .login-og-image, .layadmin-user-login-box.sutui-title, .login-title { display: none !important; }
.foot-bei { display: none !important; }

@media screen and (max-width: 960px) {
  .sutui-volc-layout { flex-direction: column; gap: 28px; }
  .sutui-volc-left { max-width: 100%; text-align: left; }
  .sutui-volc-features { max-width: 520px; }
  .mobile-hide { display: none !important; }
  .sutui-volc-page { padding: 72px 20px 80px; }
}
@media screen and (max-width: 480px) {
  .sutui-volc-card { width: 100%; flex: 1 1 auto; padding: 24px 20px 20px; }
  .sutui-volc-features { grid-template-columns: 1fr; }
}
