.auth-pluggme {
  min-height: 100vh;
  display: flex;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8faff;
}

.auth-pluggme * {
  box-sizing: border-box;
}

.auth-pluggme-brand {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 480px;
  flex-shrink: 0;
  padding: 40px;
  background: linear-gradient(160deg, #0a1628 0%, #0f2347 60%, #0d3a6e 100%);
}

.auth-pluggme-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-pluggme-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.auth-pluggme-brand-name {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.auth-pluggme-brand-name span {
  color: #60a5fa;
  font-weight: 600;
}

.auth-pluggme-eyebrow {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.auth-pluggme-brand h1 {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}

.auth-pluggme-brand-desc {
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.auth-pluggme-docs-label {
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 48px 0 12px;
}

.auth-pluggme-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-pluggme-docs span {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.auth-pluggme-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.auth-pluggme-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 14px;
}

.auth-pluggme-copy {
  color: #64748b;
  font-size: 12px;
}

.auth-pluggme-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}

.auth-pluggme-main::before,
.auth-pluggme-main::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-pluggme-main::before {
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.07) 0%, transparent 70%);
}

.auth-pluggme-main::after {
  bottom: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 70%);
}

.auth-pluggme-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(148, 163, 184, 0.28) 1px, transparent 1px);
  background-size: 24px 24px;
}

.auth-pluggme-card {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.auth-pluggme-mobile-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.auth-pluggme-mobile-logo .auth-pluggme-brand-mark {
  width: 32px;
  height: 32px;
}

.auth-pluggme-mobile-logo .auth-pluggme-brand-name {
  color: #0f172a;
}

.auth-pluggme-tabs {
  display: flex;
  border-radius: 16px;
  padding: 4px;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.7);
  backdrop-filter: blur(8px);
}

.auth-pluggme-tabs a {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.auth-pluggme-tabs a.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.auth-pluggme-title {
  color: #0f172a;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.auth-pluggme-subtitle {
  color: #94a3b8;
  font-size: 15px;
  margin: 0 0 28px;
}

.auth-pluggme-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-pluggme-field label,
.auth-pluggme-label {
  display: block;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.auth-pluggme-field img {
    display: block;
    margin: 0 auto;
}

.auth-pluggme-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.auth-pluggme-label-row label {
  margin-bottom: 0;
}

.auth-pluggme-link {
  color: #2563eb;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.auth-pluggme-link:hover {
  text-decoration: underline;
}

.auth-pluggme-input,
.auth-pluggme-form .form-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(203, 213, 225, 0.8);
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.auth-pluggme-input:focus,
.auth-pluggme-form .form-control:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.auth-pluggme-input.is-invalid,
.auth-pluggme-form .form-control.is-invalid {
  border-color: #ef4444;
}

.auth-pluggme-password {
  position: relative;
}

.auth-pluggme-password .auth-pluggme-input,
.auth-pluggme-password .form-control {
  padding-right: 46px;
}

.auth-pluggme-toggle-pass {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #94a3b8;
  padding: 0;
  cursor: pointer;
}

.auth-pluggme-toggle-pass:hover {
  color: #475569;
}

.auth-pluggme-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-pluggme-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  cursor: pointer;
}

.auth-pluggme-check label {
  color: #64748b;
  font-size: 13px;
  margin: 0;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.auth-pluggme-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.auth-pluggme-btn:hover {
  filter: brightness(1.05);
  color: #fff;
}

.auth-pluggme-btn:disabled {
  background: rgba(37, 99, 235, 0.5);
  box-shadow: none;
  cursor: not-allowed;
}

.auth-pluggme-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.auth-pluggme-divider::before,
.auth-pluggme-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(203, 213, 225, 0.6);
}

.auth-pluggme-divider span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.auth-pluggme-switch {
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.auth-pluggme-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(203, 213, 225, 0.4);
}

.auth-pluggme-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
}

.auth-pluggme-alert {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  margin: 0;
}

.auth-pluggme-alert-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-pluggme-alert-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.auth-pluggme-demo {
  background: #fff;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}

.auth-pluggme-demo p {
  color: #64748b;
  font-size: 13px;
  margin: 0 0 12px;
}

.auth-pluggme-demo .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-pluggme-demo .btn {
  border-radius: 10px;
}

.auth-pluggme-support {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
}

.auth-pluggme-support:hover {
  text-decoration: underline;
}

.auth-pluggme-invalid {
  color: #ef4444;
  font-size: 12px;
  margin-top: 6px;
  display: block;
}

body.auth-pluggme-body {
  margin: 0;
  background: #f8faff !important;
}

body.auth-pluggme-body .authentication-bg,
body.auth-pluggme-body.authentication-bg {
  background: #f8faff !important;
}

@media screen and (min-width: 992px) {
  .auth-pluggme-brand {
    display: flex;
  }

  .auth-pluggme-mobile-logo {
    display: none;
  }
}
