/* LeBen login page */
:root {
  --leben-teal: #0f8a7a;
  --leben-teal-deep: #0b6b5f;
  --leben-mint: #e8f7f4;
  --leben-ink: #163532;
  --leben-muted: #5f7a76;
  --leben-card: rgba(255, 255, 255, 0.92);
}

html, body {
  height: 100%;
}

body.leben-login {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--leben-ink);
  background: #d9efe9;
  overflow-x: hidden;
}

.leben-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 12% 18%, rgba(61, 196, 176, 0.55), transparent 60%),
    radial-gradient(900px 600px at 88% 12%, rgba(92, 168, 214, 0.35), transparent 55%),
    linear-gradient(145deg, #effaf7 0%, #d7efe9 42%, #c8e4ef 100%);
}

.leben-bg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 138, 122, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 138, 122, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 40% 40%, #000 20%, transparent 75%);
}

.leben-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
}

.orb-a {
  width: 280px;
  height: 280px;
  left: -60px;
  bottom: -40px;
  background: radial-gradient(circle, rgba(15, 138, 122, 0.35), transparent 70%);
}

.orb-b {
  width: 220px;
  height: 220px;
  right: 8%;
  top: 18%;
  background: radial-gradient(circle, rgba(74, 155, 196, 0.28), transparent 70%);
}

.orb-c {
  width: 160px;
  height: 160px;
  left: 42%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
}

.leben-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 40px 24px;
  box-sizing: border-box;
}

.leben-brand {
  width: 420px;
  max-width: 100%;
  color: var(--leben-ink);
}

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #18a894, #0f8a7a 55%, #0b6b5f);
  box-shadow: 0 12px 28px rgba(15, 138, 122, 0.28);
  margin-bottom: 18px;
}

.brand-name {
  margin: 0;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-sub {
  margin: 12px 0 8px;
  font-size: 16px;
  color: var(--leben-muted);
}

.brand-desc {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--leben-teal-deep);
  letter-spacing: 0.04em;
}

.brand-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.brand-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}

.brand-points i {
  width: 28px;
  text-align: center;
  color: var(--leben-teal);
  font-size: 16px;
}

.leben-card {
  width: 400px;
  max-width: 100%;
}

.leben-card form {
  background: var(--leben-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 34px 32px 28px;
  box-shadow: 0 18px 50px rgba(22, 53, 50, 0.12);
  backdrop-filter: blur(10px);
}

.card-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--leben-ink);
}

.card-tip {
  margin: 8px 0 24px;
  color: var(--leben-muted);
  font-size: 13px;
}

.field {
  margin-bottom: 16px;
}

.field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--leben-muted);
  font-weight: 500;
}

.field-wrap {
  position: relative;
}

.field-wrap > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8aa8a3;
  z-index: 2;
}

.leben-card .form-control {
  height: 44px !important;
  border-radius: 12px !important;
  border: 1px solid #d5e5e1 !important;
  padding: 8px 14px 8px 40px !important;
  background: #fff !important;
  color: var(--leben-ink) !important;
  box-shadow: none !important;
}

.leben-card .form-control:focus {
  border-color: var(--leben-teal) !important;
  box-shadow: 0 0 0 3px rgba(15, 138, 122, 0.12) !important;
}

.captcha-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.captcha-row .field-wrap {
  flex: 1;
}

.captcha-img {
  display: block;
  width: 118px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d5e5e1;
  background: #fff;
}

.captcha-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  margin: 4px 0 8px;
}

.checkbox-custom {
  position: relative;
  padding: 0 0 0 24px;
  margin: 0;
  display: inline-block;
}

.checkbox-custom input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  cursor: pointer;
  z-index: 2;
  margin: -6px 0 0 0;
  top: 50%;
  left: 0;
}

.checkbox-custom label:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -9px;
  width: 18px;
  height: 17px;
  display: inline-block;
  border-radius: 4px;
  border: 1px solid #c5d8d3;
  background: #fff;
}

.checkbox-custom input[type="checkbox"]:checked + label:after {
  position: absolute;
  display: inline-block;
  font-family: 'Glyphicons Halflings';
  content: "\e013";
  top: 42%;
  left: 3px;
  margin-top: -5px;
  font-size: 11px;
  line-height: 1;
  width: 16px;
  height: 16px;
  color: var(--leben-teal);
}

.checkbox-custom label {
  cursor: pointer;
  line-height: 1.2;
  font-weight: normal;
  margin-bottom: 0;
  color: var(--leben-muted);
}

.register-link {
  font-size: 12px;
  font-weight: normal;
  color: var(--leben-muted);
}

.register-link a {
  color: var(--leben-teal);
}

.btn-leben {
  margin-top: 10px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #19a894, #0f8a7a 60%, #0c7366);
  color: #fff !important;
  font-size: 16px;
  letter-spacing: 0.2em;
  box-shadow: 0 10px 22px rgba(15, 138, 122, 0.28);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-leben:hover,
.btn-leben:focus {
  color: #fff !important;
  filter: brightness(1.03);
  box-shadow: 0 12px 26px rgba(15, 138, 122, 0.34);
}

.btn-leben:active {
  transform: translateY(1px);
}

.leben-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(22, 53, 50, 0.55);
}

label.error {
  color: #d9534f;
  font-size: 12px;
  margin-top: 4px;
}

body .layer-ext-moon-msg[type="dialog"] {
  min-width: 100px !important;
}

body .layer-ext-moon-msg {
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
}

body .layer-ext-moon-msg .layui-layer-content {
  padding: 12px 25px;
  text-align: center;
}

@media screen and (max-width: 920px) {
  .leben-shell {
    flex-direction: column;
    gap: 24px;
    padding-top: 28px;
  }
  .leben-brand {
    width: 100%;
    max-width: 400px;
  }
  .brand-name {
    font-size: 40px;
  }
  .brand-points {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .leben-card,
  .leben-brand {
    width: 100%;
  }
  .leben-card form {
    padding: 28px 20px 22px;
    border-radius: 16px;
  }
  .brand-mark {
    width: 54px;
    height: 54px;
    font-size: 26px;
  }
}
