/* =====================================================================
   OUAC login page — local recreation
   Palette + metrics pulled from the live page. Tweak the variables below
   to re-skin the whole thing in one place.
   ===================================================================== */

:root {
  --gold:        #f0bf5b;   /* primary button */
  --gold-hover:  #e4ae3e;
  --ink:         #3a3a3a;   /* body / button text */
  --indigo:      #51608c;   /* action links */
  --indigo-hover:#3f4d73;
  --dark-band:   #3a3a3a;   /* charcoal band behind the login cards */
  --utility-bar: #f5f5f5;   /* light-grey top strip */
  --card-border: #e5e7eb;
  --line:        #e5e7eb;
  --white:       #ffffff;

  --radius:      8px;
  --shadow:      0 10px 15px -3px rgba(0,0,0,.25), 0 4px 6px -4px rgba(0,0,0,.2);
  --container:   1180px;
  --font:        'Roboto', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--indigo); }

/* --- Skip link (visible only on keyboard focus) --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #f5f5f5;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ========================= UTILITY BAR (grey) ======================== */
.utility-bar {
  background: var(--utility-bar);
  border-bottom: 1px solid var(--line);
}
.utility-inner {
  display: flex;
  justify-content: flex-end;
}
.utility-links {
  display: flex;
  gap: 22px;
  padding: 9px 0;
  font-size: 13px;
}
.utility-links a {
  color: var(--ink);
  text-decoration: none;
}
.utility-links a:hover { text-decoration: underline; }

/* ========================= BRAND BAR (white) ======================== */
.brand-bar {
  background: var(--white);
  padding: 22px 0;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}
.brand-mark {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--dark-band);
}
.brand-sub {
  font-size: 12.5px;
  color: #6b7280;
  margin-top: 3px;
}

/* ====================== CONTENT BAND (charcoal) ===================== */
.content-band {
  flex: 1;
  background: var(--dark-band);
  padding: 48px 0 56px;
}

/* Two-card layout, centered on the band */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
}
.card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  flex: 0 1 396px;
  max-width: 396px;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin: 0 0 20px;
}
.card-text {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 24px;
}

/* --- Form --- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.req { font-weight: 400; color: #6b7280; }
.field input {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #cbd0d8;
  border-radius: 4px;
  background: #fff;
}
.field input:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(81,96,140,.15);
}

.form-message {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--red, #c12222);
}
.form-message.ok { color: #227a3b; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  border-radius: 4px;
  padding: 10px 30px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--gold-hover); }
.btn-block { display: block; text-align: center; }
/* Pin the Create-Account CTA to the bottom so both cards line up */
.card-cta { margin-top: auto; }

/* --- Secondary links under the form --- */
.link-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  font-size: 14px;
}
.link-list li { margin-bottom: 8px; }
.link-list a { color: var(--indigo); text-decoration: none; }
.link-list a:hover { color: var(--indigo-hover); text-decoration: underline; }

/* =============================== FOOTER ============================== */
.site-footer {
  background: var(--white);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copyright {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

/* ============================= DASHBOARD ============================ */
.welcome {
  color: #f5f5f5;              /* near-white heading on the dark band */
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 24px;
}
.dash-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.dash-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  flex: 1 1 340px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
}
.dash-card__intro {
  font-size: 15px;
  color: #555;
  margin: 0 0 20px;
}

/* Big "continue" application bar (indigo, like the real OLSAS button) */
.app-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--indigo);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 16px 22px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease;
}
.app-pill:hover { background: var(--indigo-hover); }
.app-pill__icon { width: 24px; height: 24px; flex: 0 0 24px; }
.dash-card > .app-pill { margin-bottom: 24px; }
.dash-card__intro--start { margin-top: 12px; }

.guide-link { font-size: 13px; color: var(--indigo); text-decoration: none; }
.guide-link:hover { text-decoration: underline; }
.guide-link--block { display: inline-block; margin-top: 14px; }

/* List of application types (right card) */
/* --- Accordion: one colored, expandable bar per application type --- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item { border-radius: 12px; }

.acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  padding: 16px 22px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease;
}
.acc-header__icon { width: 24px; height: 24px; flex: 0 0 24px; }
.acc-header__label { min-width: 0; }
.acc-chevron {
  width: 22px; height: 22px; flex: 0 0 22px;
  margin-left: auto;              /* push chevron to the far right */
  transition: transform .2s ease;
}
.acc-item.open > .acc-header { border-radius: 12px 12px 0 0; }
.acc-item.open .acc-chevron { transform: rotate(180deg); }

/* Per-service colours (read from the live page) */
.acc--undergrad .acc-header { background: #651a35; }
.acc--undergrad .acc-header:hover { background: #571630; }
.acc--omsas    .acc-header { background: var(--gold); color: var(--ink); }
.acc--omsas    .acc-header:hover { background: var(--gold-hover); }
.acc--orpas    .acc-header { background: #b14f46; }
.acc--orpas    .acc-header:hover { background: #9e453d; }
.acc--teas     .acc-header { background: #4a7e8c; }
.acc--teas     .acc-header:hover { background: #416e7a; }

/* "This application is closed." badge on the OMSAS bar */
.acc-badge {
  font-size: 15px;
  font-weight: 400;
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(58, 58, 58, .4);
  border-radius: 6px;
  padding: 2px 10px;
  white-space: nowrap;
}

/* Expanded cream panel */
.acc-panel {
  background: #ffeedd;
  color: #1a1a1a;
  border-radius: 0 0 12px 12px;
  padding: 20px 22px;
  font-size: 15px;
  line-height: 1.55;
}
.acc-panel[hidden] { display: none; }
.acc-panel p { margin: 0 0 12px; }
.acc-reminders-title { font-weight: 700; margin: 16px 0 8px; }
.acc-panel ul { margin: 0 0 16px; padding-left: 20px; }
.acc-panel li { margin-bottom: 10px; }
.acc-continue { margin-top: 4px; }

/* Dashboard action buttons match the real ones (18px / normal weight / 6px) */
.dash-card .btn {
  font-size: 18px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 6px;
}

/* ============================= RESPONSIVE ============================ */
@media (max-width: 720px) {
  .cards { flex-direction: column; align-items: stretch; }
  .card { max-width: none; flex-basis: auto; }
  .brand-mark { font-size: 28px; }
  .welcome { font-size: 24px; }
  .app-row { flex-direction: column; align-items: flex-start; }
}
