:root {
    --main-color-dark: color-mix(in srgb, var(--main-color) 70%, black);
    --auth-shell-bg: #edf4fb;
    --auth-card-bg: rgba(255, 255, 255, 0.82);
    --auth-card-border: rgba(148, 163, 184, 0.18);
    --auth-card-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
    --auth-ink: #0f172a;
    --auth-muted: #57657a;
    --auth-pill: rgba(16, 185, 129, 0.12);
    --auth-input-bg: rgba(248, 250, 252, 0.9);
    --auth-input-border: rgba(148, 163, 184, 0.2);
}

body {
  background: var(--auth-shell-bg);
  font-family: "Inter", "Segoe UI", sans-serif;
}

.health-auth-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.4rem, 3vw, 3rem);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 18, 32, 0.14), rgba(255, 255, 255, 0.62));
  background-size: cover;
  background-position: center;
  width: 100%;
}

.health-auth-shell::before,
.health-auth-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.9;
  pointer-events: none;
}

.health-auth-shell::before {
  width: 32rem;
  height: 32rem;
  right: -9rem;
  top: -7rem;
  /* background: color-mix(in srgb, var(--main-color) 30%, white); */
}

.health-auth-shell::after {
  width: 26rem;
  height: 26rem;
  left: -7rem;
  bottom: -8rem;
  /* background: rgba(255, 255, 255, 0.45); */
}

.health-auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  padding: clamp(1.25rem, 2vw, 2rem);
  border-radius: 2rem;
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-card-border);
  box-shadow: var(--auth-card-shadow);
  backdrop-filter: blur(14px);
}

.health-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.health-auth-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.health-auth-brand img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
}

.health-auth-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--auth-pill);
  border: 1px solid color-mix(in srgb, var(--main-color) 18%, white);
  color: var(--main-color-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.health-auth-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  /* padding: 0.75rem 0 1.6rem; */
}

.health-auth-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--main-color-dark);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
}

.health-auth-hero h1 {
  margin: 0;
  max-width: 560px;
  color: var(--auth-ink);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.health-auth-kpis {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.health-auth-kpi {
  min-width: 128px;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(148,163,184,0.16);
}

.health-auth-kpi strong {
  display: block;
  font-size: 1.2rem;
  color: var(--auth-ink);
  font-weight: 800;
}

.health-auth-kpi span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--auth-muted);
}

.health-auth-form-wrap {
  padding-top: 1rem;
}

.health-auth-form-wrap .form-label {
  color: var(--auth-ink);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.health-auth-form-wrap .form-control,
.health-auth-form-wrap .input-group .form-control {
  min-height: 52px;
  border-radius: 1rem;
  border: 1px solid var(--auth-input-border);
  background: var(--auth-input-bg);
  box-shadow: none;
  padding: 0.9rem 1rem;
  color: var(--auth-ink);
}

.health-auth-form-wrap .form-control:focus,
.health-auth-form-wrap .input-group .form-control:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--main-color) 18%, white);
  background: #fff;
}

.health-auth-form-wrap .input-group {
  /* overflow: hidden; */
  border-radius: 1rem;
}

.health-auth-form-wrap .togglePassword {
  min-width: 52px;
  border: 1px solid var(--auth-input-border);
  /* border-left: 0; */
  background: #fff;
  color: var(--main-color);
}

.health-auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.health-auth-links a {
  color: var(--main-color) !important;
  font-weight: 600;
  text-decoration: none;
}

.health-auth-form-wrap .btn-primary {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-dark) 100%);
  border: 0;
  border-radius: 1rem;
  min-height: 54px;
  font-weight: 700;
  box-shadow: 0 18px 30px color-mix(in srgb, var(--main-color) 22%, transparent);
  transition: box-shadow 0.3s ease-in-out, filter 0.28s ease-in-out, transform 0.18s ease-in-out;
}

.health-auth-form-wrap .btn-primary:hover,
.health-auth-form-wrap .btn-primary:focus {
  box-shadow: 0 20px 36px color-mix(in srgb, var(--main-color) 28%, transparent);
  filter: brightness(1.05) saturate(1.08);
}

.health-auth-whatsapp {
  margin-top: 1.1rem;
}

.health-auth-whatsapp .card {
  border: 1px solid rgba(20, 97, 82, 0.18);
  border-radius: 1.2rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #0d5b4a, #0d6d59);
  box-shadow: 0 16px 28px rgba(20, 97, 82, 0.15);
}

.health-auth-whatsapp .card h4 {
  font-size: 0.98rem;
  line-height: 1.3;
  font-weight: 800;
}

.health-auth-whatsapp .card p {
  font-size: 0.84rem;
  opacity: 0.9;
}

.bg-whats {
  background: linear-gradient(135deg, #0e6e58, #0c4d3c);
}

@media (max-width: 767.98px) {
  .health-auth-card {
    border-radius: 1.5rem;
  }

  .health-auth-header,
  .health-auth-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .health-auth-kpis {
    width: 100%;
  }

  .health-auth-kpi {
    flex: 1 1 120px;
  }
}
