/* Authentication pages intentionally match the planner's visual system. */
:root {
  --red: #e7193f;
  --red-dark: #bd1232;
  --red-soft: #fce8ed;
  --yellow: #ffd400;
  --ink: #202329;
  --muted: #69707d;
  --line: #dde0e5;
  --soft: #f5f6f8;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(22, 26, 34, 0.14);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 212, 0, 0.18), transparent 27rem),
    linear-gradient(135deg, #eef0f3 0%, #f8f8fa 55%, #eceef2 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr); }
.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 44px;
  color: var(--white);
  background: var(--ink);
}
.auth-brand::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -130px;
  width: 340px;
  height: 340px;
  border: 60px solid rgba(231, 25, 63, 0.16);
  border-radius: 50%;
}
.brand-lockup { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 46px; height: 46px; border-radius: 10px; background: var(--yellow); display: flex; align-items: end; justify-content: center; gap: 4px; padding: 10px; }
.brand-mark span { display: block; width: 6px; background: var(--red); border-radius: 2px 2px 0 0; }
.brand-mark span:nth-child(1) { height: 12px; }
.brand-mark span:nth-child(2) { height: 24px; }
.brand-mark span:nth-child(3) { height: 17px; }
.eyebrow { margin: 0; color: #a2a9b4; font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.brand-lockup h1 { margin: 3px 0 0; font-size: 21px; letter-spacing: -.03em; }
.brand-message { position: relative; z-index: 1; max-width: 390px; }
.brand-message h2 { margin: 0; font-size: clamp(31px, 4vw, 50px); line-height: 1.03; letter-spacing: -.055em; }
.brand-message p { margin: 18px 0 0; color: #c7cbd2; font-size: 15px; line-height: 1.6; }
.security-note { position: relative; z-index: 1; color: #9098a5; font-size: 12px; line-height: 1.5; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(100%, 470px); padding: 38px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
.auth-card h2 { margin: 0; font-size: 29px; letter-spacing: -.045em; }
.auth-card > p { margin: 9px 0 27px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.auth-form { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; }
.field span { color: #4d535d; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .075em; }
.field input { width: 100%; min-height: 45px; border: 1px solid #cfd3da; border-radius: 7px; padding: 10px 12px; color: var(--ink); background: #fff; }
.field input:focus { border-color: var(--red); outline: 3px solid rgba(231, 25, 63, .11); }
.primary-button { min-height: 45px; margin-top: 4px; border: 0; border-radius: 7px; color: #fff; background: var(--red); font-weight: 850; cursor: pointer; box-shadow: 0 6px 16px rgba(231, 25, 63, .2); }
.primary-button:hover { background: var(--red-dark); }
.alert { margin: 0 0 20px; border: 1px solid #efbdc7; border-radius: 7px; padding: 12px 13px; color: #8c1730; background: var(--red-soft); font-size: 13px; line-height: 1.45; }
.alert.info { border-color: #e1d16e; color: #65560d; background: #fff9d8; }
.password-note { margin: -5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.session-note { margin: 23px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }

@media (max-width: 820px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { min-height: 250px; padding: 28px; gap: 46px; }
  .brand-message h2 { font-size: 34px; }
  .security-note { display: none; }
  .auth-main { padding: 24px 16px 40px; }
  .auth-card { padding: 28px 24px; }
}

