/* ============================================================
   LOGIN SCREEN
   ============================================================ */

.mw-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ---- Left brand panel ---- */
.mw-brand-panel {
  position: relative;
  background: var(--mw-gradient);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  overflow: hidden;
}
.mw-brand-panel::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -220px; top: -220px;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
}
.mw-brand-panel::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  left: -160px; bottom: -180px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
}

.mw-brand-logo { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.mw-brand-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.mw-brand-logo span { font-family: var(--mw-font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; }

.mw-brand-mid { position: relative; z-index: 1; max-width: 420px; }
.mw-brand-mid h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 18px;
}
.mw-brand-mid p {
  font-size: 1.02rem;
  opacity: .92;
  line-height: 1.6;
}
.mw-brand-feature-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mw-brand-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .92rem;
  font-weight: 600;
  opacity: .95;
}
.mw-brand-feature-list i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.mw-brand-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
}
.mw-brand-stats div strong { display: block; font-size: 1.6rem; font-family: var(--mw-font-display); }
.mw-brand-stats div span { font-size: .82rem; opacity: .85; }

.mw-brand-foot { position: relative; z-index: 1; font-size: .82rem; opacity: .8; }

/* ---- Right form panel ---- */
.mw-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: var(--mw-surface);
}
.mw-form-card { width: 100%; max-width: 400px; }

.mw-form-mobile-logo { display: none; margin-bottom: 28px; align-items: center; gap: 10px; }
.mw-form-mobile-logo img { height: 32px; }
.mw-form-mobile-logo span { font-family: var(--mw-font-display); font-weight: 700; font-size: 1.1rem; color: var(--mw-ink); }

.mw-form-card h2 { font-size: 1.55rem; font-weight: 700; margin-bottom: 6px; }
.mw-form-card .mw-sub { color: var(--mw-ink-soft); font-size: .92rem; margin-bottom: 28px; }

.mw-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0; color: var(--mw-ink-soft); font-size: .8rem;
}
.mw-divider::before, .mw-divider::after { content: ""; flex: 1; height: 1px; background: var(--mw-line); }

.mw-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 18px;
  background: #fff; border: 1.5px solid var(--mw-line); border-radius: var(--mw-radius-sm);
  font-family: var(--mw-font-body); font-weight: 600; font-size: .92rem; color: var(--mw-ink);
  cursor: pointer; transition: box-shadow .15s var(--mw-ease), border-color .15s var(--mw-ease);
}
.mw-google-btn:hover { box-shadow: var(--mw-shadow-sm); border-color: #D8D2D6; }
.mw-google-btn svg { width: 18px; height: 18px; }

.mw-form-foot-row {
  display: flex; justify-content: space-between; align-items: center;
  margin: -8px 0 20px;
  font-size: .85rem;
}
.mw-remember { display: flex; align-items: center; gap: 7px; color: var(--mw-ink-soft); }
.mw-remember input { accent-color: var(--mw-magenta); }

.mw-guest-link {
  display: block; text-align: center; margin-top: 22px;
  font-size: .88rem; color: var(--mw-ink-soft);
}
.mw-guest-link a { font-weight: 600; }

.mw-signup-row {
  text-align: center; margin-top: 26px; font-size: .88rem; color: var(--mw-ink-soft);
}
.mw-signup-row a { font-weight: 600; }

.mw-login-note {
  text-align: center; margin-top: 26px; font-size: .82rem; color: var(--mw-ink-soft);
  background: var(--mw-canvas); border-radius: var(--mw-radius-sm); padding: 12px 14px; line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .mw-login-shell { grid-template-columns: 1fr; }
  .mw-brand-panel { display: none; }
  .mw-form-panel { padding: 32px 20px; min-height: 100vh; }
  .mw-form-mobile-logo { display: flex; }
}

@media (max-width: 420px) {
  .mw-form-card h2 { font-size: 1.3rem; }
}

/* ============================================================
   FORGOT PASSWORD — link + modal
   ============================================================ */

.mw-forgot-link {
  font-size: .85rem;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  color: var(--mw-magenta);
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
}
.mw-forgot-link:hover { opacity: .85; }

.mw-fp-modal {
  position: fixed;
  inset: 0;
  z-index: 4500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mw-fp-modal[hidden] { display: none; }

.mw-fp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 20, 0.55);
}

.mw-fp-modal-card {
  position: relative;
  background: var(--mw-surface);
  border-radius: var(--mw-radius-lg);
  box-shadow: var(--mw-shadow-lg);
  padding: 32px;
  width: 100%;
  max-width: 420px;
}
.mw-fp-modal-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.mw-fp-modal-sub {
  font-size: .85rem;
  color: var(--mw-ink-soft);
  margin: 0 0 20px;
  line-height: 1.5;
}
.mw-fp-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--mw-canvas);
  color: var(--mw-ink-soft);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
.mw-fp-modal-close:hover { color: var(--mw-magenta); }

@media (max-width: 420px) {
  .mw-fp-modal-card { padding: 24px 20px; }
}
