html.premium-os-auth-page body.login_admin,
html.premium-os-auth-page body.authentication,
html.premium-os-auth-page body.customers {
  background:
    radial-gradient(circle at top left, rgba(91, 110, 255, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.1), transparent 28%),
    linear-gradient(180deg, #eef3fb 0%, #e8eef9 56%, #e5ebf7 100%);
  color: #516079;
  margin: 0;
  min-height: 100dvh;
}

html.premium-os-auth-page body.login_admin {
  overflow-x: hidden;
}

.premium-os-auth-screen {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
  padding: 12px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.premium-os-auth-shell {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 32px;
  box-shadow:
    0 34px 90px rgba(15, 23, 42, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.4) inset;
  display: grid;
  grid-template-columns: minmax(400px, 1fr) minmax(380px, 500px);
  height: min(760px, calc(100dvh - 24px));
  max-width: 1680px;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.premium-os-auth-showcase {
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.1), transparent 22%),
    radial-gradient(circle at 82% 84%, rgba(79, 70, 229, 0.16), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(156deg, #131a25 0%, #182233 22%, #1b2b47 48%, #223aa1 76%, #1d2b87 100%);
  color: #ffffff;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.premium-os-auth-showcase__backdrop {
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.06), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(7, 12, 24, 0.34));
  inset: 0;
  position: absolute;
}

.premium-os-auth-showcase__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px 24px 26px;
  position: relative;
  z-index: 1;
}

.premium-os-auth-showcase__brand-logo {
  max-height: 52px;
}

.premium-os-auth-showcase__eyebrow {
  color: rgba(255, 255, 255, 0.72);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.premium-os-auth-showcase__copy h2,
.premium-os-auth-showcase__headline {
  color: #4d7dff !important;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 12px;
  max-width: 460px;
  text-shadow: 0 8px 24px rgba(13, 27, 79, 0.18);
}

.premium-os-auth-showcase__copy p {
  color: rgba(241, 245, 249, 0.84);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: 470px;
}

.premium-os-auth-showcase__stage {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.premium-os-auth-dashboard-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  box-shadow:
    0 28px 60px rgba(6, 13, 41, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
  display: grid;
  gap: 14px;
  grid-template-columns: 108px 1fr;
  padding: 16px 18px;
}

.premium-os-auth-dashboard-card__ring {
  align-items: center;
  background:
    radial-gradient(circle closest-side, #ffffff 64%, transparent 66% 100%),
    conic-gradient(#ec4899 0 28%, #7264ff 28% 76%, rgba(226, 232, 240, 0.85) 76% 100%);
  border-radius: 50%;
  color: #172554;
  display: inline-flex;
  font-size: 20px;
  font-weight: 700;
  height: 96px;
  justify-content: center;
  width: 96px;
}

.premium-os-auth-dashboard-card__legend {
  display: grid;
  gap: 8px;
}

.premium-os-auth-dashboard-card__legend-item {
  align-items: flex-start;
  color: #334155;
  display: flex;
  gap: 12px;
}

.premium-os-auth-dashboard-card__legend-item strong {
  color: #0f172a;
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.premium-os-auth-dashboard-card__legend-item span {
  color: #64748b;
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.premium-os-auth-dot {
  background: linear-gradient(135deg, #ff7ab6 0%, #ff915d 100%);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(255, 122, 182, 0.12);
  flex: 0 0 10px;
  height: 10px;
  margin-top: 5px;
  width: 10px;
}

.premium-os-auth-floating-card {
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(4, 10, 28, 0.28);
  color: #ffffff;
  max-width: 214px;
  padding: 12px 14px;
}

.premium-os-auth-floating-card--primary {
  justify-self: start;
}

.premium-os-auth-floating-card--secondary {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(30, 41, 59, 0.4));
  justify-self: end;
}

.premium-os-auth-floating-card__label {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.premium-os-auth-floating-card strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.premium-os-auth-main {
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.05), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #ffffff 100%);
  display: flex;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: 20px 22px;
}

.premium-os-auth-card {
  max-width: 400px;
  width: 100%;
}

.premium-os-auth-card__brand {
  margin-bottom: 14px;
}

.premium-os-auth-card__brand img {
  max-height: 44px;
}

.premium-os-auth-card__header {
  margin-bottom: 14px;
}

.premium-os-auth-card__eyebrow {
  color: #64748b;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.premium-os-auth-card__header h1 {
  color: #0f172a;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.premium-os-auth-card__header p {
  color: #5f6f87;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.premium-os-auth-card__surface {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  box-shadow:
    0 24px 56px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.55) inset;
  padding: 18px;
}

.premium-os-auth-card__surface .alert {
  border-radius: 16px;
}

.premium-os-auth-field {
  margin-bottom: 12px;
}

.premium-os-auth-field__row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.premium-os-auth-field__row label,
.premium-os-auth-field label {
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.premium-os-auth-field__row a,
.premium-os-auth-links a,
.premium-os-auth-card__footer a {
  color: #3b82f6;
  text-decoration: none;
}

.premium-os-auth-input {
  position: relative;
}

.premium-os-auth-input > i {
  color: #64748b;
  font-size: 16px;
  left: 16px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.premium-os-auth-input .form-control {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  box-shadow: none;
  color: #0f172a;
  font-size: 14px;
  height: 50px;
  padding: 0 50px 0 46px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.premium-os-auth-input .form-control:focus {
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.42);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.premium-os-auth-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #64748b;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  z-index: 3;
}

.premium-os-auth-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 14px;
}

@media (max-height: 860px) {
  .premium-os-auth-screen {
    padding: 10px;
  }

  .premium-os-auth-shell {
    height: calc(100dvh - 16px);
  }

  .premium-os-auth-showcase__content {
    gap: 12px;
    padding: 20px 20px 22px;
  }

  .premium-os-auth-showcase__copy h2,
  .premium-os-auth-showcase__headline {
    font-size: 30px;
    margin-bottom: 10px;
  }

  .premium-os-auth-showcase__copy p {
    font-size: 13px;
    line-height: 1.4;
  }

  .premium-os-auth-dashboard-card {
    gap: 12px;
    grid-template-columns: 92px 1fr;
    padding: 14px;
  }

  .premium-os-auth-dashboard-card__ring {
    font-size: 18px;
    height: 84px;
    width: 84px;
  }

  .premium-os-auth-floating-card {
    max-width: 200px;
    padding: 10px 12px;
  }

  .premium-os-auth-floating-card strong {
    font-size: 14px;
  }

  .premium-os-auth-main {
    padding: 16px 18px;
  }

  .premium-os-auth-card__header h1 {
    font-size: 28px;
  }

  .premium-os-auth-card__surface {
    padding: 16px;
  }
}

@media (max-height: 760px) {
  .premium-os-auth-showcase__eyebrow {
    margin-bottom: 8px;
  }

  .premium-os-auth-showcase__copy h2,
  .premium-os-auth-showcase__headline {
    font-size: 26px;
    max-width: 420px;
  }

  .premium-os-auth-showcase__copy p {
    font-size: 12px;
  }

  .premium-os-auth-floating-card--primary {
    display: none;
  }

  .premium-os-auth-dashboard-card__legend-item:nth-child(3) {
    display: none;
  }

  .premium-os-auth-floating-card--secondary {
    display: none;
  }
}

.premium-os-auth-meta .checkbox {
  margin: 0;
}

.premium-os-auth-meta .checkbox label {
  color: #475569;
  font-weight: 500;
}

.premium-os-auth-submit.btn,
.premium-os-auth-surface .btn.btn-primary {
  background: linear-gradient(135deg, #3558f3 0%, #263dce 100%);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(37, 74, 211, 0.22);
  font-size: 15px;
  font-weight: 700;
  min-height: 50px;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.premium-os-auth-submit.btn:hover,
.premium-os-auth-surface .btn.btn-primary:hover {
  box-shadow: 0 22px 40px rgba(37, 74, 211, 0.28);
  transform: translateY(-1px);
}

.premium-os-auth-submit.is-loading,
.premium-os-auth-submit[disabled] {
  cursor: wait;
  opacity: 0.88;
}

.premium-os-auth-secondary.btn {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  color: #0f172a;
  min-height: 48px;
}

.premium-os-auth-card__footer {
  color: #64748b;
  font-size: 14px;
  margin-top: 14px;
  text-align: center;
}

.premium-os-auth-card__footer--utility {
  margin-top: 12px;
  text-align: left;
}

.premium-os-auth-language {
  margin-bottom: 14px;
}

.premium-os-auth-language .bootstrap-select > .dropdown-toggle,
.premium-os-auth-language select.form-control {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  min-height: 52px;
}

.premium-os-auth-language--compact {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 0;
}

.premium-os-auth-language--compact label {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.premium-os-auth-language--compact .bootstrap-select,
.premium-os-auth-language--compact select.form-control {
  margin-left: 0;
  max-width: 180px;
}

.premium-os-auth-language--compact .bootstrap-select > .dropdown-toggle,
.premium-os-auth-language--compact select.form-control {
  min-height: 42px;
  padding-block: 0;
}

html.premium-os-auth-page body.customers .premium-os-auth-screen {
  padding: 0;
}

html.premium-os-auth-page body.customers #wrapper {
  min-height: 100dvh;
}

html.premium-os-auth-page body.customers .premium-os-auth-shell {
  border-radius: 0;
  height: 100dvh;
  max-width: none;
}

@media (min-width: 992px) {
  html.premium-os-auth-page body.login_admin,
  html.premium-os-auth-page body.authentication,
  html.premium-os-auth-page body.customers {
    overflow: hidden;
  }
}

html[data-premium-os-theme="dark"].premium-os-auth-page body.login_admin,
html[data-premium-os-theme="dark"].premium-os-auth-page body.authentication,
html[data-premium-os-theme="dark"].premium-os-auth-page body.customers {
  background:
    radial-gradient(circle at top left, rgba(87, 107, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #0d1218 0%, #111827 100%);
  color: #cbd5e1;
}

html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-shell {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(71, 85, 105, 0.36);
}

html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-main {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(17, 24, 39, 0.98) 100%);
}

html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-card__header h1,
html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-field__row label,
html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-field label,
html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-card__brand {
  color: #f8fafc;
}

html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-card__header p,
html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-card__eyebrow,
html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-meta .checkbox label,
html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-card__footer {
  color: #94a3b8;
}

html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-card__surface {
  background: rgba(17, 24, 39, 0.78);
  border-color: rgba(71, 85, 105, 0.34);
  box-shadow: 0 28px 64px rgba(2, 6, 23, 0.42);
}

html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-input .form-control,
html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-language .bootstrap-select > .dropdown-toggle,
html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-language select.form-control {
  background: #111827;
  border-color: rgba(71, 85, 105, 0.44);
  color: #e2e8f0;
}

html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-language--compact label {
  color: #94a3b8;
}

html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-input > i,
html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-toggle {
  color: #cbd5e1;
}

html[data-premium-os-theme="dark"].premium-os-auth-page .premium-os-auth-secondary.btn {
  border-color: rgba(71, 85, 105, 0.44);
  color: #e2e8f0;
}

@media (max-width: 1199px) {
  .premium-os-auth-shell {
    grid-template-columns: minmax(320px, 0.95fr) minmax(380px, 1fr);
  }

  .premium-os-auth-showcase__copy h2 {
    font-size: 34px;
  }

  .premium-os-auth-dashboard-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .premium-os-auth-screen {
    padding: 18px;
  }

  .premium-os-auth-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .premium-os-auth-showcase {
    min-height: 340px;
  }

  .premium-os-auth-main {
    padding: 26px 22px 30px;
  }
}

@media (max-width: 640px) {
  .premium-os-auth-screen {
    padding: 0;
  }

  .premium-os-auth-shell {
    border-radius: 0;
    height: auto;
    min-height: 100dvh;
  }

  .premium-os-auth-showcase__content,
  .premium-os-auth-main {
    padding: 22px 18px;
  }

  .premium-os-auth-showcase__copy h2,
  .premium-os-auth-card__header h1 {
    font-size: 30px;
  }

  .premium-os-auth-card__surface {
    border-radius: 22px;
    padding: 22px 18px;
  }

  .premium-os-auth-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .premium-os-auth-language--compact {
    align-items: stretch;
    flex-direction: column;
  }

  .premium-os-auth-language--compact .bootstrap-select,
  .premium-os-auth-language--compact select.form-control {
    max-width: none;
  }
}
