.login-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
  margin: 1.5rem 0;
  padding: .3rem;
  border-radius: 12px;
  background: #edf2f6;
}

.login-mode {
  padding: .7rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.login-mode.is-active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(10, 38, 68, .1);
}
.resident-forgot-link { display: block; margin-top: -.25rem; color: var(--navy); font-size: .85rem; font-weight: 750; text-align: center; }

.login-card section > h2 { margin-bottom: .25rem; }
.login-card section > .muted { margin-bottom: 0; }

.resident-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.resident-hero .eyebrow { margin-top: 0; }
.resident-hero h1 { margin-bottom: .4rem; }
.resident-secure { padding: .55rem .85rem; border: 1px solid #b9d8c8; border-radius: 999px; background: #eff9f2; color: var(--green); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.resident-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, .8fr); gap: 1.25rem; }
.resident-panel { padding: 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.resident-panel .eyebrow { margin-top: 0; }
.resident-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.resident-form .wide { grid-column: 1 / -1; }
.resident-form select { width: 100%; padding: 13px; border: 1px solid #bdcbd9; border-radius: 10px; background: #fff; color: var(--ink); }
.form-actions { display: flex; justify-content: flex-end; }
.resident-authorization-list { display: grid; gap: .75rem; }
.resident-authorization-card { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.resident-authorization-card header { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.resident-authorization-card h3 { margin: 0; font-size: 1.05rem; }
.resident-authorization-card dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem .75rem; margin: 0 0 .85rem; font-size: .85rem; }
.resident-authorization-card dt { color: var(--muted); font-weight: 700; }
.resident-authorization-card dd { margin: 0; }
.resident-status { height: fit-content; padding: .25rem .5rem; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.resident-status.revoked { background: #edf2f6; color: var(--muted); }
.resident-revoke { padding: .55rem .75rem; background: var(--red-bg); color: var(--red); }

@media (max-width: 980px) {
  .resident-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .resident-hero { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .resident-form { grid-template-columns: 1fr; }
  .resident-form .wide { grid-column: auto; }
}
