/* ===== LOGIN LAYOUT ===== */
.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* ===== CARD ===== */
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-md);
}

/* ===== BRAND ===== */
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 2rem;
  text-align: center;
}

.login-brand .tehillah-mark__svg {
  width: 2.4rem;
  height: 2.9rem;
}

.login-heading {
  margin: 0.8rem 0 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.login-sub {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ===== FORM FIELDS ===== */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted-strong);
  letter-spacing: 0.04em;
}

.field input {
  width: 100%;
  padding: 0.78rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
}

.field input::placeholder {
  color: var(--muted);
}

.field input:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(232, 196, 90, 0.18);
}

[data-theme="dark"] .field input:focus {
  box-shadow: 0 0 0 3px rgba(232, 196, 90, 0.14);
}

/* ===== ERROR BANNER ===== */
.login-error {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(184, 50, 50, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(184, 50, 50, 0.08);
  color: var(--danger);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.login-error.is-visible {
  display: flex;
}

[data-theme="dark"] .login-error {
  border-color: rgba(255, 138, 138, 0.26);
  background: rgba(255, 138, 138, 0.08);
}

/* ===== SUBMIT BUTTON ===== */
.btn--full {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  margin-top: 0.25rem;
}

.btn[aria-busy="true"] {
  opacity: 0.72;
  pointer-events: none;
  cursor: not-allowed;
}

/* ===== FOOTER ===== */
.login-footer {
  text-align: center;
  padding: 1.4rem 1rem;
  color: var(--muted);
  font-size: var(--text-xs);
  border-top: 1px solid var(--border);
}

.login-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .login-card {
    padding: 2rem 1.25rem;
  }
}
