/* AIdeal Course - login and home pages, in the AIdeal Invoice processor style. */
:root {
  --slate: #4D5164;        /* window background */
  --slate-panel: #5A5F72;  /* panels */
  --blue: #3B8ED0;         /* buttons and panel borders */
  --blue-hover: #36719F;
  --grey-btn: #6E7183;     /* secondary buttons */
  --grey-btn-hover: #5D6072;
  --text: #FFFFFF;
  --text-soft: #D5D8E0;
  --text-muted: #C9CBD4;
  --info: #9FD3FF;
  --warn: #F0B67F;
  --error: #FF6B6B;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--slate);
  color: var(--text);
  font: 14px/1.45 "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
}
a { color: var(--info); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 700; color: #fff; text-decoration: none;
  background: var(--blue); border: 0; border-radius: 6px;
  padding: 0 16px; height: 32px; cursor: pointer;
}
.btn:hover { background: var(--blue-hover); }
.btn:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }
.btn.secondary { background: var(--grey-btn); font-weight: 600; }
.btn.secondary:hover { background: var(--grey-btn-hover); }
.btn.big { height: 40px; font-size: 15px; }
.btn:disabled { opacity: .6; cursor: default; }

.panel {
  background: var(--slate-panel);
  border: 2px solid var(--blue);
  border-radius: 8px;
}

/* ---------------------------------------------------------------- login */

.login-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
              gap: 28px; padding: 24px 16px; }
.login { width: 100%; max-width: 400px; padding: 0 28px 24px; text-align: center; overflow: hidden; }
/* The POFSA, Flushing SC and RCYC logos are drawn for a white background, so they sit in a
   white band across the top: POFSA larger, in the middle, and the two clubs beneath it. */
.login .clubs { background: #fff; margin: 0 -28px 22px; padding: 16px 20px 18px; }
.login .clubs .pofsa { display: block; width: 180px; max-width: 60%; height: auto; margin: 0 auto 14px; }
.login .club-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login .club-row img { display: block; height: 48px; width: auto; max-width: 48%; object-fit: contain; }
.login-foot img { display: block; width: 150px; max-width: 45vw; height: auto; }
.login h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.login .sub { margin: 2px 0 20px; color: var(--text-muted); }
.login form { text-align: left; display: flex; flex-direction: column; gap: 12px; }
.login label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--text-soft); font-size: 13px; }
.login input {
  font: inherit; color: #1d1e22; background: #F9F9FA;
  border: 2px solid #979DA2; border-radius: 6px; padding: 6px 10px; height: 36px;
}
.login input:focus { outline: none; border-color: var(--blue); }
.login .btn { margin-top: 6px; width: 100%; }
.login .error { color: var(--error); font-weight: 600; min-height: 1.45em; margin: 0; }
.login .setup { color: var(--warn); text-align: left; font-size: 13px; margin: 0 0 4px; }
.login .setup code { color: #fff; background: rgba(0,0,0,.2); padding: 1px 5px; border-radius: 4px; }

/* ---------------------------------------------------------------- home */

.home-page { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 12px 20px; color: var(--text-muted);
}
.topbar b { color: var(--text); }
.home { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px 24px; }
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 48px; margin: 4px 0 26px; }
.hero-text { text-align: center; }
.hero .logo { width: 240px; max-width: 60vw; height: auto; display: block; margin: 0 auto 10px; }
.hero h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.hero p { margin: 4px 0 0; color: var(--text-muted); }
.hero #venue { color: var(--info); font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; padding: 16px; }
.tile {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: #fff;
  background: var(--blue); border-radius: 8px; padding: 16px 18px; min-height: 104px;
  transition: background .12s, transform .12s;
}
.tile:hover { background: var(--blue-hover); transform: translateY(-1px); }
.tile:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }
.tile b { font-size: 17px; }
.tile span { font-size: 13px; color: rgba(255,255,255,.88); }

/* The set-up screens: smaller grey buttons below the main three. */
h2.more { margin: 22px 0 0 16px; font-size: 13px; font-weight: 700; color: var(--text-muted);
          text-transform: uppercase; letter-spacing: .08em; }
.tiles.small { padding: 8px 16px 0; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.tiles.small .tile { background: var(--grey-btn); min-height: 0; padding: 10px 14px; gap: 2px; }
.tiles.small .tile:hover { background: var(--grey-btn-hover); }
.tiles.small .tile b { font-size: 14px; }
.tiles.small .tile span { font-size: 12px; color: var(--text-soft); }

/* Gybe.gif (and Gybe_once.gif) is 426 x 240 with the clip itself at x 146-280, y 37-186 (134 x 149) and black
   all round. The box takes the clip's shape and the image is enlarged and shifted inside it
   so only the clip shows. */
.gybe {
  position: relative; overflow: hidden; flex: 0 0 auto;
  width: 190px; aspect-ratio: 134 / 149;
  border: 2px solid var(--blue); border-radius: 8px; background: #000;
  padding: 0; cursor: pointer;
}
.gybe:hover { border-color: var(--info); }
.gybe:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }
.gybe img { position: absolute; width: 317.91%; height: 161.07%; left: -108.96%; top: -24.83%; max-width: none; }
