/* ── Auth layout ── */
.mp-auth-body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: #f8f8fa;
  min-height: 100vh;
}

.mp-auth-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar (desktop only) ── */
.mp-auth-sidebar {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 64px;
  background: linear-gradient(160deg, #e8900a 0%, #f5a623 45%, #f7c96e 100%);
  color: #fff;
  overflow: hidden;
  min-height: 100vh;
}

.mp-auth-sidebar__dots {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.75) 1px, transparent 0);
  background-size: 22px 22px;
}

.mp-auth-sidebar__circle {
  pointer-events: none;
  position: absolute;
  right: -90px;
  top: -170px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.mp-auth-sidebar__brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.mp-auth-sidebar__logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.mp-auth-sidebar__content {
  position: relative;
  z-index: 1;
  max-width: 460px;
}

.mp-auth-sidebar__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.mp-auth-sidebar__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a1a2e;
  flex-shrink: 0;
}

.mp-auth-sidebar__title {
  margin: 24px 0 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.mp-auth-sidebar__subtitle {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  max-width: 420px;
}

.mp-auth-sidebar__footer {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

/* ── Form section ── */
.mp-auth-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f8f8fa;
}

/* ── Mobile header (hidden on desktop) ── */
.mp-auth-mobile-header {
  background: linear-gradient(160deg, #e8900a 0%, #f5a623 50%, #f7c96e 100%);
  padding: 40px 28px 32px;
  color: #fff;
}

.mp-auth-mobile-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 24px;
}

.mp-auth-mobile-header__logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

.mp-auth-mobile-header__title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.mp-auth-mobile-header__subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
}

/* ── Form wrapper ── */
.mp-auth-form-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px 40px;
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
  box-sizing: border-box;
}

.mp-auth-form-header {
  display: none;
  margin-bottom: 30px;
}

.mp-auth-form-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
}

.mp-auth-form-subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #666;
}

/* ── Alert ── */
.mp-auth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff3f3;
  border: 1px solid #ffc5c5;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #c0392b;
  margin-bottom: 16px;
}

/* ── Auth card ── */
.mp-auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 40px rgba(26, 26, 46, 0.08);
}

/* ── Form fields ── */
.mp-auth-field {
  margin-bottom: 18px;
}

.mp-auth-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.mp-auth-field__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.mp-auth-field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
  flex-shrink: 0;
}

.mp-auth-field__input {
  width: 100%;
  height: 50px;
  border: 1.5px solid #e8e8ee;
  border-radius: 10px;
  padding: 0 16px 0 42px;
  font-family: inherit;
  font-size: 14px;
  color: #1a1a2e;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.mp-auth-field__input::placeholder {
  color: #b0b0c0;
}

.mp-auth-field__input:focus {
  border-color: #f5a623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}

.mp-auth-field__input--password {
  padding-right: 46px;
}

.mp-auth-field__toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: 0;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.mp-auth-field__toggle:hover {
  color: #1a1a2e;
}

/* ── Submit button ── */
.mp-auth-submit {
  width: 100%;
  gap: 10px;
  height: 50px;
  padding: 0 20px;
  font-size: 15px;
}

/* ── Desktop breakpoint ── */
@media (min-width: 1024px) {
  .mp-auth-layout {
    display: grid;
    grid-template-columns: minmax(480px, 52%) minmax(420px, 48%);
  }

  .mp-auth-sidebar {
    display: flex;
  }

  .mp-auth-mobile-header {
    display: none;
  }

  .mp-auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px;
  }

  .mp-auth-form-wrapper {
    padding: 0;
    justify-content: flex-start;
  }

  .mp-auth-form-header {
    display: block;
  }

  .mp-auth-card {
    margin-top: 0;
    padding: 28px;
  }
}
