/* MarketPaid - guest auth (login / register) */

body.mp-body--auth {
  font-family: "Inter", var(--font, system-ui, sans-serif);
  background: linear-gradient(to bottom, var(--primary, #22a85c) 0%, #2ecc71 100%) !important;
  background-attachment: fixed;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

body.mp-body--auth .mp-main--guest {
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2.5rem;
}

body.mp-body--auth .mp-landing-header,
body.mp-body--auth .mp-footer--landing {
  position: relative;
  z-index: 2;
}

#auth {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

#auth > section {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

@media (min-width: 992px) {
  #auth > section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    min-height: 32rem;
  }
}

#auth > section > aside {
  display: none;
  position: relative;
  overflow: hidden;
  min-height: 100%;
  background: linear-gradient(165deg, #146b38 0%, var(--primary, #22a85c) 42%, #2ecc71 100%);
  color: #fff;
}

@media (min-width: 992px) {
  #auth > section > aside {
    display: block;
  }
}

#auth > section > aside [data-part="icons"] {
  --auth-icon-cell: 3.35rem;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, var(--auth-icon-cell));
  grid-auto-rows: var(--auth-icon-cell);
  column-gap: 2px;
  row-gap: 2px;
  padding: 2px;
  align-content: start;
  justify-content: start;
  pointer-events: none;
}

#auth > section > aside [data-part="icons"] i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.35rem;
  color: #ffffff;
  line-height: 1;
  transform: rotate(var(--bg-rot, 0deg));
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.12));
}

@media (min-width: 1200px) {
  #auth > section > aside [data-part="icons"] {
    --auth-icon-cell: 3.65rem;
  }

  #auth > section > aside [data-part="icons"] i {
    font-size: 2.65rem;
  }
}

#auth > section > aside [data-part="content"] {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 2.25rem 1.75rem;
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(15, 23, 42, 0.35) 45%,
    rgba(15, 23, 42, 0.15) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#auth > section > aside [data-part="content"] > p:first-child {
  display: inline-block;
  width: fit-content;
  font-family: "Poppins", var(--font, system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.15rem;
}

#auth > section > aside [data-part="content"] h2 {
  font-family: "Poppins", var(--font, system-ui, sans-serif);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 0.85rem;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.25);
}

#auth > section > aside [data-part="content"] > p:nth-of-type(2) {
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1.35rem;
  max-width: 20rem;
}

#auth > section > aside [data-part="content"] ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

#auth > section > aside [data-part="content"] ul li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

#auth > section > aside [data-part="content"] ul li::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  color: #166534;
  background: #bbf7d0;
}

#auth > section > div {
  padding: 2rem 1.5rem 2.25rem;
}

@media (min-width: 576px) {
  #auth > section > div {
    padding: 2.5rem 2.5rem 2.75rem;
  }
}

#auth header {
  text-align: center;
  margin-bottom: 1.5rem;
}

#auth header .mp-brand-logo {
  justify-content: center;
}

#auth h1 {
  font-family: "Poppins", var(--font, system-ui, sans-serif);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  color: #0f172a;
  margin: 0 0 0.35rem;
}

#auth > section > div > p:first-of-type {
  text-align: center;
  font-size: 0.95rem;
  color: #64748b;
  margin: 0 0 1.5rem;
}

#auth .mp-auth-errors-fallback {
  border-radius: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

#auth .mp-auth-errors:not([hidden]) {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

#auth label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}

#auth .form-control {
  padding: 0.7rem 0.9rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(17, 24, 39, 0.12);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#auth .form-control:focus {
  border-color: var(--primary, #22a85c);
  box-shadow: 0 0 0 3px rgba(34, 168, 92, 0.2);
}

#auth .mp-password-group .btn-outline-secondary {
  border-color: rgba(17, 24, 39, 0.12);
  color: #64748b;
}

#auth .mb-3 {
  margin-bottom: 1.1rem !important;
}

#auth p[data-part="forgot"] {
  text-align: right;
  margin: -0.35rem 0 0.85rem;
  font-size: 0.875rem;
}

#auth p[data-part="forgot"] a {
  font-weight: 600;
  color: var(--primary, #22a85c);
  text-decoration: none;
}

#auth p[data-part="forgot"] a:hover {
  text-decoration: underline;
  color: var(--primary-dark, #137a3f);
}

#auth .alert-success {
  border-radius: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

#auth .auth-dev-reset {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  color: #1e3a5f;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  word-break: break-all;
}

#auth .auth-dev-reset a {
  font-weight: 600;
  color: var(--primary-dark, #137a3f);
}

#auth button[type="submit"] {
  margin-top: 0.35rem;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary, #22a85c) 0%, #2ecc71 100%);
  box-shadow: 0 8px 22px rgba(34, 168, 92, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#auth button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(34, 168, 92, 0.4);
}

#auth > section > div > p:last-of-type {
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
  margin: 1.25rem 0 0;
}

#auth > section > div > p:last-of-type a {
  font-weight: 700;
  color: var(--primary-dark, #137a3f);
  text-decoration: none;
}

#auth > section > div > p:last-of-type a:hover {
  text-decoration: underline;
}
