/* ── Log in (patterns/login-card.php) ─────────────────────────────────
   Values verbatim from m-u-s-i-c-3.0 src/pages/Login.tsx inline
   styles. The WP page drops the SPA form + demo-credentials box; the
   cobalt button goes to wp-login.php instead. */

.music-login {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 32px);
}

.music-login__wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.music-login__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.music-login__logo {
  margin: 0;
}

.music-login__logo img {
  width: 52px;
  height: 52px;
}

.music-login__title {
  font-weight: 700;
  font-size: clamp(28px, 5vw, 36px);
  letter-spacing: -0.015em;
  margin: 0;
}

/* music-card supplies the white bg, 1px #E8ECF2 border and radius 16; the
   login card's padding, gap and shadow differ from the base card. */
.music-card.music-login__card {
  padding: clamp(22px, 4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.05);
}

.music-login__copy {
  margin: 0;
}

/* Source button: full card width, 14px 24px pad, 600/15, radius 8. */
.music-login__btns {
  display: flex;
}

.music-login__btns .wp-block-button.music-login__btn {
  width: 100%;
}

.music-login__card .wp-block-button.music-login__btn .wp-block-button__link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}

/* Source link row: 13.5px, gap 12, wrap; centered here — the WP card
   carries a single link (WP owns password recovery). */
.music-login__links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  margin: 0;
}

/* ── Sign-in card (template-login.php) — ported from Login.tsx ───────── */
.music-login {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 32px);
}
.music-login__inner {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.music-login__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
/* Was a fixed 52x52 box for the icon SVG. The interim wordmark is text, so it
   sizes itself; a square would clip it. Restore the box with the artwork. */
.music-login__mark { width: auto; height: auto; }
.music-login__title {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 36px);
  letter-spacing: -0.015em;
  margin: 0;
}
.music-login__card {
  background: #ffffff;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  padding: clamp(22px, 4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.05);
}
.music-login__error {
  font-size: 13.5px;
  color: #d7374f;
  font-weight: 500;
  background: #ffe6e7;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0;
}
#music-loginform p { margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
#music-loginform label { font-size: 14px; font-weight: 600; }
#music-loginform input[type="text"],
#music-loginform input[type="password"] {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid #cdd4df;
  border-radius: 8px;
  font-size: 15px;
  background: #ffffff;
  outline: none;
  font-family: inherit;
}
#music-loginform input[type="text"]:focus,
#music-loginform input[type="password"]:focus { border-color: #2447c6; }
#music-loginform .login-remember { flex-direction: row; align-items: center; gap: 8px; }
#music-loginform .login-remember label { font-weight: 500; font-size: 13.5px; color: #516078; }
#music-loginform .login-submit { margin-bottom: 0; }
#music-loginform input[type="submit"] {
  background: #2447c6;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease;
}
#music-loginform input[type="submit"]:hover { background: #1b37a0; }
.music-login__links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

/* ── Social sign-in slot ──────────────────────────────────────────────
   `.music-social--card` (inc/social-login.php, styled in _social.css) is a
   direct child of `.music-login__card`, between the form and the link row, so
   the card's own 16px column gap spaces it. It is only present once a
   provider is configured — when it is absent the card collapses back to
   form + links with no leftover space. These two rules are the only thing
   the login card itself has to say about it. */
.music-login__card .music-social {
  width: 100%;
}

/* The submit button already ends flush (`.login-submit` zeroes its margin),
   so the divider only needs the card gap, not a second margin. */
.music-login__card #music-loginform + .music-social {
  margin-top: 0;
}
