/* ============================================================
   login.css — Login page (page-specific styles)
   ============================================================ */

/* ── Page wrapper ── */
.login-page {
  min-height: 100dvh;
  background-color: #ddffe2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  font-family: 'Manrope', Arial, sans-serif;
}

body:has(.login-page) {
  justify-content: stretch;
  align-items: stretch;
  background: #ddffe2;
}

/* ── Card ── */
.login-card {
  background: white;
  border-radius: 16px;
  padding: 32px 28px;
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Logo ── */
.login-logo {
  display: flex;
  justify-content: center;
}

.login-logo img {
  max-height: 72px;
  max-width: 180px;
  object-fit: contain;
}

/* ── Title ── */
.login-title {
  font-size: 22px;
  font-weight: 800;
  color: #0b361d;
  text-align: center;
  margin: 0;
}

/* ── Info / error messages ── */
.login-info {
  font-size: 13px;
  font-weight: 500;
  color: #3b6447;
  background: #f0faf1;
  border-left: 3px solid #91f78e;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0;
  line-height: 1.5;
}

.login-error {
  font-size: 13px;
  font-weight: 500;
  color: #7a1a00;
  background: #f8e9e6;
  border-left: 3px solid #b02500;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0;
}

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

/* ── Form ── */
#login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #3b6447;
  text-transform: uppercase;
}

/* ── Digit row (code, date, pin) ── */
.login-digit-row {
  display: flex;
  gap: 8px;
}

.login-digit {
  flex: 1;
  min-width: 0;
  height: 52px;
  text-align: center;
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0b361d;
  background: #f9fbf9;
  border: 1.5px solid rgba(0,107,27,0.2);
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.login-digit:focus {
  border-color: #006b1b;
  box-shadow: 0 0 0 3px rgba(0,107,27,0.12);
  background: #fff;
}

/* Date: day & month are narrower, year is wider */
.login-digit--date {
  font-size: 16px;
}

.login-digit--year {
  font-size: 16px;
  flex: 1.7;
}

/* ── Plain text input ── */
.login-text-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0b361d;
  background: #f9fbf9;
  border: 1.5px solid rgba(0,107,27,0.2);
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-text-input:focus {
  border-color: #006b1b;
  box-shadow: 0 0 0 3px rgba(0,107,27,0.12);
  background: #fff;
}

/* ── Submit button ── */
.login-btn {
  width: 100%;
  height: 52px;
  background: #006b1b;
  color: white;
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  margin-top: 4px;
}

.login-btn:hover:not(:disabled) {
  background: #005e17;
}

.login-btn:disabled {
  background: #e9ecef;
  color: #9ea9a2;
  cursor: default;
}

/* Preserve hidden state for inputs */
input[type="hidden"] {
  display: none;
}
