.login-page {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Header */
.login-header {
  padding: .5rem 1rem;
  position: relative;
  z-index: 3;
  background-color: #0c420c;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.5);
}

.login-logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
}

.login-logo span:first-child {
  color: #84cc16;
}

/* HERO SECTION */
.login-hero {
  position: relative;
  min-height: 65vh;

  display: flex;
  align-items: center;
  justify-content: flex-start; /* 👈 key change */

  padding-left: 15%; /* controls how far from left edge */

  background:
    linear-gradient(rgba(15,81,50,0.85), rgba(15,81,50,0.85)),
    url('/img/turf-texture.png');

  background-size: cover;
  overflow: hidden;
}

/* LOGIN CARD (floating) */
.login-card {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 360px;

  background: #fff;
  padding: 2rem;
  border-radius: 10px;

  box-shadow: 0 20px 50px rgba(0,0,0,0.25);

  margin-left: 0; /* make sure it's not auto-centering */
}

/* FORM */
.login-form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.login-form-group input {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* ROW */
.login-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Was the "Remember me" label. That checkbox was removed 2026-08-13 (it had
   never been wired up); the rule is kept in case the row gains a control
   again. Its only consumer was loginpage.j2. */
.login-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Row with nothing on the left — keeps "Forgot password?" right-aligned
   instead of space-between dropping it to the left edge. */
.login-form-row-end {
  justify-content: flex-end;
}

/* BUTTON */
.login-form button {
  width: 100%;
  padding: 0.75rem;
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 6px;
}

.login-form .signup-btn {
  width: 100%;
  padding: 0.75rem;
  background: #0c420c;
  color: #fff;
  border: none;
  border-radius: 6px;
}

.login-horse {
  position: absolute;
  right: 10%;
  bottom: -45px;

  height: 100%;
  max-height: 700px;

  z-index: 1;

  pointer-events: none; /* avoids weird interactions */
}

/* SEO CONTENT SECTION */
.login-content {
  background: #fff;
  padding: 3rem 2rem;
}

.login-content-inner {
  max-width: 900px;
  margin: 0 auto;
}

.login-content h2 {
  margin-bottom: 1rem;
}

/* NEW MEMBER BLOCK */
.new-member {
  margin-top: 20px;
  padding: 16px;

  text-align: center;

  background: #f4f6f5; /* 👈 subtle contrast */
  border-radius: 8px;
}

.new-member p {
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

.new-member a {
  color: blue;
  text-decoration: none;
}

/* FOOTER */
.login-footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  line-height: 1.9;
}

.login-footer-link {
  color: #a7d98d;
  text-decoration: underline;
}

.login-footer-link:hover {
  color: #fff;
}

/* MOBILE */
@media (max-width: 900px) {
  .login-horse {
    display: none;
  }

  .login-hero {
    min-height: auto;
    padding: 2rem 1rem;
  }
}


/********** Game Homepage (after log in) **********/
.main-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 2em;
  max-width: 1300px;
  margin: auto;
}

/* Grid */
.main-grid {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
}

/* Base column */
.main-col {
  padding: 20px;
}

/* Left (login) */
.main-col-left {
  flex: 0 0 320px;
  max-width: 360px;
}

/* Middle (SEO/content) */
.main-col-middle {
  flex: 1;
  min-width: 280px;
}

/* Right (image/visual) */
.main-col-right {
  flex: 1;
  min-width: 300px;
}

.race-container {
  background: var(--ehr-surface-bg);
  border: 1px solid var(--ehr-border);
  border-radius: var(--hp-radius);
  padding: .5em;
}

.race-top {
  /* background: linear-gradient(
    135deg,
    #1f7a4c 0%,
    #145c3a 50%,
    #0f3e2a 100%
  ); */
  background: var(--ehr-table-header-bg);
  color: var(--ehr-table-header-text);
  padding: 12px 16px;
  font-weight: 600;
}

/* Race body spacing */
.race-body {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

/* Each row */
.race-row {
  padding: 12px 14px;
  background: var(--ehr-theme-tint);
  display: flex;
  flex-direction: column;
  gap: .5em;
}

/* TOP ROW GRID */
.race-main {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 10px;
}

/* BOTTOM ROW GRID */
.race-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

/* Elements */
.race-track {
  font-weight: bold;
}

.race-name a {
  color: var(--ehr-theme-on-tint);
  font-weight: 700;
  font-size: 1.15em;
  text-decoration: none;
}

.race-name a:hover {
  text-decoration: underline;
}

.race-purse {
  font-weight: bold;
  white-space: nowrap;
}

.race-author {
  color: var(--ehr-text-muted);
}

.race-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.race-time {
  color: var(--ehr-text-muted);
  white-space: nowrap;
}
/* ---- login notice (2026-08-15) --------------------------------------
   Shown when a login fails because the account has no argon2 credential
   (never activated for the new game) rather than because the password was
   wrong. Amber, not red: this is "do this instead", not "you did it wrong".
   Colours match the green-turf login skin. */
.login-notice {
	display: block;
	margin: 0 0 16px 0;
	padding: 12px 14px;
	border-radius: 6px;
	border: 1px solid #d9a300;
	border-left: 4px solid #d9a300;
	background: #fff8e1;
	color: #4a3800;
	font-size: 13px;
	line-height: 1.45;
	text-align: left;
}
.login-notice strong { display: block; margin-bottom: 4px; font-size: 13.5px; }
.login-notice a      { color: #0c420c; font-weight: 700; text-decoration: underline; }
.login-notice a:hover{ color: #146414; }

/* wrong username or password */
.login-notice-bad        { background: #fdecea; border-color: #e0a19a; color: #7a1c12; }
.login-notice-bad a      { color: #7a1c12; }
.login-notice-bad a:hover{ color: #a3271a; }

/* ---- MAINYRGE_20261018 (owner 10-18): "YRGE Articles" on the front page, under or over "Trending on the BTB"
   (jinja/mainpage/mainpage_yrge_recent.j2). Same race-* look as the BTB box; the bar carries a YRGE mark where the BTB
   box carries the bugler picture, and the two boxes keep a gap between them whichever comes first. */
.race-top-split { display: flex; justify-content: space-between; align-items: center; }
.mp_yrge_mark {
  padding: 2px 8px;
  border: 1px solid #0f172a;
  background: #d97706;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.race-container + .race-container { margin-top: 1em; }
/* the spoiler control sits inside a compact row: a touch smaller than on the horse page */
.mp_yrge .news_spoiler { margin: 0; padding: 3px 9px; font-size: 12px; }
.mp_yrge .race-meta { column-gap: 10px; }   /* a long headline keeps clear of the Recap / Preview label */

/* ---- MAINNEWS_20261018 (owner 10-18: "btb and yrge are always 1-2 and the upcoming races below them ... btb in the primary
   spot most of the time especially as the screen compacts"). jinja/mainpage/mainpage_VARS.j2: the BTB and YRGE boxes share
   the top row; below them, see MAINNEWS2 (the layout as it stands). When the page is too narrow for two boxes side by
   side, everything stacks in page order. One load in ten (default.py) the grid carries mp_swap: the YRGE column comes
   first (MAINNEWS2: on every screen). A BTB box with nothing to show leaves its slot empty, and the slot folds away. */
.mp_grid           { gap: 1em; align-items: flex-start; }
.mp_news           { flex: 1 1 calc(50% - .5em); min-width: 280px; }
.mp_news:empty     { display: none; }
/* MAINNEWS2_20261018: the swap now holds on every screen (owner: "btb + yrge or yrge + btb"), see below */

/* ---- MAINNEWS2_20261018 (owner 10-18): admin note back on top (mainpage_VARS.j2 .main-admin, as before); the news row
   is BTB beside a column of the 3D Viewer picture over YRGE; Upcoming Races takes the full width below. Stacked (980px
   and below) the picture leaves the YRGE column and comes last, saying desktop / laptop only for now. mp_swap (one load
   in ten, default.py) puts the YRGE column first on every screen. */
.mp_swap .mp_news_yrge   { order: -1; }
.mp_grid .mp_races       { flex: 1 1 100%; }
.mp_viewer_top           { margin-top: 1em; }   /* under the YRGE box (owner 10-18: "put the viewer below yrge") */
.mp_viewer_body          { display: flex; flex-direction: column; align-items: center; gap: .5em; padding: .75em .5em .25em; text-align: center; }
.mp_viewer_pic           { width: 100%; max-width: 220px; height: auto; border-radius: 8px; }
.mp_viewer_cap           { font-size: 14px; }
.mp_viewer_bottom        { display: none; }
@media (max-width: 980px) {
  .mp_viewer_top         { display: none; }
  .mp_viewer_bottom      { display: block; flex: 1 1 100%; }
}
