html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ============================================================
   Admin sign-in (Identity) — card-styled login page.
   Layout cloned from EmailWax, mapped to the FHIRProof palette.
   ============================================================ */
.auth-section {
    min-height: calc(100vh - 64px - 220px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem 3.5rem;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef4f3 100%);
}

.auth-card {
    width: 100%;
    max-width: 410px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
    padding: 2.25rem 2rem 2rem;
}

.auth-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #0f766e;
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.auth-brand {
    margin-top: .85rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #1e293b;
}

.auth-brand .brand-accent {
    color: #0d9488;
}

.auth-title {
    margin: 1rem 0 .25rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
}

.auth-subtitle {
    margin: 0;
    font-size: .875rem;
    color: #718096;
}

.auth-form {
    margin-top: .5rem;
}

.auth-field {
    margin-bottom: 1.1rem;
}

.auth-label {
    display: block;
    margin-bottom: .35rem;
    font-size: .82rem;
    font-weight: 600;
    color: #4a5568;
}

.auth-form .form-control {
    height: 46px;
    border-radius: 8px;
}

.auth-field-error,
.auth-error {
    display: block;
    color: #dc3545;
    font-size: .82rem;
}

.auth-error {
    margin-bottom: 1rem;
}

.auth-error:empty {
    display: none;
}

.auth-error ul {
    margin: 0;
    padding-left: 1.1rem;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.35rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-size: .875rem;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
}

.auth-check .form-check-input {
    margin: 0;
}

.auth-submit {
    width: 100%;
    height: 46px;
    font-weight: 600;
    background-color: #0f766e;
    border-color: #0f766e;
}

.auth-submit:hover,
.auth-submit:focus {
    background-color: #0d5d56;
    border-color: #0d5d56;
}

.auth-foot {
    margin: 1.25rem 0 0;
    font-size: .875rem;
    text-align: center;
}

.auth-foot a {
    color: #718096;
    text-decoration: none;
}

.auth-foot a:hover {
    color: #0f766e;
}