/* login.css ---------------------------------------------------------
   0. Re-use everything from styles.css first */
@import url('/styles.css');

/* 1. Palette + variables (override or add) */
:root {
  --primary:       #008D9E;
  --primary-dark:  #1a3662;   /* deeper teal/blue for hover + footer */
  --slate-200:     #e2e8f0;
}

/* 2. Layout tweaks only for login page
      (these rules override the defaults pulled in above) */

/* --- page chrome --- */
header {
  background: linear-gradient(to right, #ffffff 0%, var(--primary) 100%);
  color: #fff;
  text-align: left;
  padding: .75rem 1rem;
  box-shadow: 0 2px 6px rgb(0 0 0 / .15);
}
header h1 { font-size: 1.5rem; }

main {
  width: 100%;
  max-width: 420px;
  margin: 2.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}


footer {
  width: 100%;
  background: var(--primary-dark);
  color: #fff;
  font-size: .875rem;
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
}

/* --- reusable “pretty button” class --- */
.btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: .6rem 1.25rem;
  border-radius: .375rem;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { background: var(--primary-dark); }

/* --- login card --- */
.login-card {
  width: 100%;
  max-width: 420px;       /* narrower than dashboard’s tables */
  background: #fff;
  padding: 2.5rem 3rem;   /* roomy */
  border-radius: .75rem;
  box-shadow: 0 2px 18px rgb(13 148 136 / .25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.login-card h2 { margin-bottom: .25rem; }
.login-card p  { margin-bottom: .5rem; color: #475569; }

.login-card input {
  width: 100%;
  padding: .75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--slate-200);
  border-radius: .5rem;
  box-sizing: border-box; /* respect inner padding */
}

/* --- logo in header --- */
.site-logo {
  height: 48px;
  width: auto;
  display: block;
  margin-left: 1.5rem;    /* align left */
}

/* --- error text --- */
.error {
  color: #dc2626;
  min-height: 1.5rem;
  font-size: .925rem;
}

/* style dropdowns the same as text inputs */
.login-card select {
  width: 100%;
  padding: .75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--slate-200);
  border-radius: .5rem;
  background: #fff;            /* ensure white bg */
  appearance: none;            /* remove OS arrow */
}




/* ─── FORM GRID (sign-up only) ───────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* two equal columns */
  gap: 1rem;                        /* space between fields */
}

/* make wider cards so two columns feel roomy */
.login-card { max-width: 600px; }

/* anything that needs the whole row */
.full { grid-column: 1 / 3; }

/* keep “Sign Up” button left-aligned but full-width on mobile */
.form-grid .btn { grid-column: 1 / 3; }
@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }  /* stack on tiny screens */
}

