/* ==========================================================================
   Team sign-in page (login.html)
   Squared and simple: minimal 2px corners, a thin olive line on top of the
   card, centred header, left-aligned fields, one clear button.
   ========================================================================== */

:root {
  --login-radius: 2px;   /* one place to change how square everything is */
}

body {
  background: var(--paper);
}

.login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px 16px;
}

/* ---------- Card ---------- */
.login-card {
  width: min(100%, 400px);
  padding: 40px clamp(24px, 6vw, 40px) 36px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--olive);
  border-radius: var(--login-radius);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(76, 55, 19, 0.06), 0 24px 48px -32px rgba(76, 55, 19, 0.45);
}

.login-logo {
  width: auto;
  height: 64px;
  margin: 0 auto 24px;
}

.login-form[hidden] {
  display: none;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Centred header: title + one line of explanation */
.login-head {
  margin-bottom: 6px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.login-head h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.login-intro {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Fields ---------- */
.login-form .field {
  gap: 7px;
}

.login-form .field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--brown);
}

.login-form .field input {
  min-height: 46px;
  padding: 0.65em 0.9em;
  border: 1px solid var(--line-strong);
  border-radius: var(--login-radius);
  background: var(--field-bg, #FCFAF6);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-form .field input:hover {
  border-color: rgba(76, 55, 19, 0.45);
}

.login-form .field input:focus {
  border-color: var(--olive);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(100, 99, 72, 0.15);
}

.field-hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* Password with a small "Show" button inside */
.password-wrap {
  position: relative;
}

.password-wrap input {
  width: 100%;
  padding-right: 64px;
}

.show-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--login-radius);
  background: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--olive);
  cursor: pointer;
  transform: translateY(-50%);
}

.show-btn:hover {
  background: var(--paper);
}

/* ---------- Message & button ---------- */
.form-message {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #9a3b2a;
  border-radius: var(--login-radius);
  background: #f8ece8;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #8c3a26;
}

.form-message:empty {
  display: none;
}

.login-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border-radius: var(--login-radius);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.login-submit[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* ---------- Below the card ---------- */
.login-note {
  margin: 22px 0 0;
  font-size: 0.85rem;
}

.login-note a {
  color: var(--ink-soft);
  text-decoration: none;
}

.login-note a:hover {
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 420px) {
  .login-card {
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .login-logo {
    height: 56px;
    margin-bottom: 20px;
  }
}
