.auth-premium {
  --auth-surface: rgba(255, 255, 255, 0.06);
  --auth-surface-2: rgba(255, 255, 255, 0.04);
  --auth-border: rgba(255, 255, 255, 0.12);
  --auth-border-strong: rgba(255, 255, 255, 0.18);
  --auth-text: rgba(255, 255, 255, 0.92);
  --auth-muted: rgba(255, 255, 255, 0.62);
  --auth-muted-2: rgba(255, 255, 255, 0.42);
  --auth-accent-0: #7c3aed;
  --auth-accent-1: #4f46e5;
  --auth-radius-lg: 22px;
  --auth-radius-md: 16px;
}

.auth-premium .authentication-inner {
  padding: 2.25rem 1.5rem;
}

/* Single-card layout (no side panel) */
.auth-premium.auth-premium-single.authentication-basic {
  align-items: center;
  justify-content: center;
}

.auth-premium.auth-premium-single.authentication-basic .authentication-inner {
  width: 100%;
  max-width: 560px;
  padding: 2.25rem 1rem;
}

.auth-premium.auth-premium-single .auth-card-glow {
  display: none;
}

/* Ensure premium card styles win over vendor auth styles */
.authentication-wrapper.auth-premium .auth-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-lg);
}

/* Split layout balance */
.auth-premium .auth-premium-left,
.auth-premium .auth-premium-right {
  min-height: calc(100vh - 4.5rem);
}

.auth-premium .auth-premium-left {
  border-radius: var(--auth-radius-lg);
  background:
    radial-gradient(600px 360px at 25% 25%, rgba(124, 58, 237, 0.20), transparent 60%),
    radial-gradient(560px 340px at 70% 70%, rgba(79, 70, 229, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.dark-style .auth-premium .auth-cover-bg-color {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

.auth-premium .auth-premium-left::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(620px 320px at 50% 0%, rgba(255, 255, 255, 0.10), transparent 55%);
  pointer-events: none;
}

.auth-premium .auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-premium .auth-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.auth-premium .auth-brand-title {
  color: var(--auth-text);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  font-size: 1.05rem;
}

.auth-premium .auth-brand-subtitle {
  color: var(--auth-muted);
  margin: 0;
  font-size: 0.9rem;
}

.auth-premium .auth-left-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.auth-premium .auth-left-hero {
  margin-top: 1.75rem;
  color: var(--auth-text);
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1.35;
}

.auth-premium .auth-left-desc {
  margin-top: 0.75rem;
  color: var(--auth-muted);
  max-width: 36ch;
  line-height: 1.75;
}

.auth-premium .auth-left-visual {
  margin-top: 1.75rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.22);
  padding: 1.1rem;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-premium .auth-left-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  opacity: 0.95;
}

/* Login card (glassmorphism) */
.auth-premium .auth-card-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.auth-premium .auth-card-glow {
  position: absolute;
  inset: -18px -22px;
  background: radial-gradient(420px 220px at 40% 20%, rgba(124, 58, 237, 0.28), transparent 65%);
  filter: blur(14px);
  opacity: 0.65;
  pointer-events: none;
}

.auth-premium .auth-card {
  position: relative;
  border-radius: var(--auth-radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--auth-border);
  box-shadow:
    0 30px 75px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 2rem;
}

.auth-premium .auth-title {
  margin: 0;
  color: var(--auth-text);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.4;
}

.auth-premium .auth-subtitle {
  margin-top: 0.35rem;
  margin-bottom: 1.4rem;
  color: var(--auth-muted);
  line-height: 1.7;
}

/* Inputs */
.auth-premium .auth-field {
  margin-bottom: 1rem;
}

.auth-premium .auth-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--auth-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-premium .auth-input {
  width: 100%;
  height: 52px;
  padding: 0.75rem 0.95rem;
  padding-right: 2.9rem; /* icon space (RTL) */
  border-radius: var(--auth-radius-md);
  background: var(--auth-surface-2);
  border: 1px solid var(--auth-border);
  color: var(--auth-text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.auth-premium .auth-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.auth-premium .auth-input:hover {
  border-color: var(--auth-border-strong);
  background: rgba(255, 255, 255, 0.055);
}

.auth-premium .auth-input:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.65);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
}

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

.auth-premium .auth-input-icon {
  position: absolute;
  top: 50%;
  right: 0.95rem;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  font-size: 1.1rem;
}

.auth-premium .auth-input-action {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.25rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 160ms ease, color 160ms ease;
}

.auth-premium .auth-input-action:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

/* Row helpers */
.auth-premium .auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.25rem 0 1.25rem;
}

.auth-premium .auth-link {
  color: rgba(124, 58, 237, 0.95);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.auth-premium .auth-link:hover {
  text-decoration: underline;
}

.auth-premium .auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--auth-muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
}

.auth-premium .auth-check input {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  display: inline-grid;
  place-items: center;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.auth-premium .auth-check input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
}

.auth-premium .auth-check input:checked {
  background: linear-gradient(135deg, var(--auth-accent-0), var(--auth-accent-1));
  border-color: rgba(124, 58, 237, 0.6);
}

.auth-premium .auth-check input:checked::after {
  content: "";
  width: 8px;
  height: 4px;
  border-right: 2px solid rgba(255, 255, 255, 0.95);
  border-bottom: 2px solid rgba(255, 255, 255, 0.95);
  transform: rotate(45deg);
  margin-top: -1px;
}

/* CTA */
.auth-premium .auth-btn {
  height: 52px;
  border-radius: 16px;
  border: 0;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--auth-accent-0), var(--auth-accent-1));
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.22);
  transition: transform 120ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.auth-premium .auth-btn:disabled,
.auth-premium .auth-btn.disabled {
  opacity: 1 !important; /* prevent Bootstrap dimming */
  filter: none;
}

.auth-premium .auth-btn .spinner-border,
.auth-premium .auth-btn .spinner-grow {
  color: #fff;
}

.auth-premium .btn-link.auth-link:disabled,
.auth-premium .btn-link.auth-link.disabled {
  opacity: 1 !important; /* keep resend text visible */
  color: rgba(124, 58, 237, 0.95) !important; /* prevent Bootstrap disabled color */
}

/* Make resend loading state readable on dark background */
.auth-premium .btn-link.auth-link.is-loading {
  background: rgba(124, 58, 237, 0.14) !important;
  border: 1px solid rgba(124, 58, 237, 0.32) !important;
  border-radius: 12px !important;
  padding: 0.25rem 0.6rem !important;
  text-decoration: none !important;
}

.auth-premium .btn-link.auth-link.is-loading .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.16em;
}

.auth-premium .auth-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 16px 42px rgba(124, 58, 237, 0.28);
  transform: translateY(-1px);
}
.auth-premium .auth-btn:active {
  transform: translateY(0px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.22);
}

/* Divider + social */
.auth-premium .auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.4rem 0 1rem;
  color: var(--auth-muted-2);
  font-weight: 700;
  font-size: 0.85rem;
}
.auth-premium .auth-divider::before,
.auth-premium .auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.10);
}

.auth-premium .auth-social {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.auth-premium .auth-social-btn {
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: border-color 160ms ease, background-color 160ms ease, transform 120ms ease;
}
.auth-premium .auth-social-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* Mobile behavior */
@media (max-width: 991.98px) {
  .auth-premium .authentication-inner {
    padding: 1.5rem 1rem;
  }
  .auth-premium .auth-premium-left {
    min-height: auto;
    margin-bottom: 1rem;
  }
  .auth-premium .auth-left-content {
    padding: 1.4rem;
  }
  .auth-premium .auth-left-hero {
    font-size: 1.35rem;
  }
  .auth-premium .auth-card {
    padding: 1.6rem;
  }
}

