/* SIS DENTAL — login clínico */
:root {
  --auth-ink: #16324a;
  --auth-muted: #5d7386;
  --auth-brand: #1a6fb5;
  --auth-brand-d: #0f4f86;
  --auth-heal: #1a8f80;
  --auth-panel: #ffffff;
  --auth-line: #d7e3ec;
  --auth-soft: #eef6fa;
  --auth-danger: #b42318;
  --auth-ok: #1b7a45;
  --auth-font: "DM Sans", "Segoe UI", sans-serif;
  --auth-ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body.v16-auth {
  font-family: var(--auth-font);
  color: var(--auth-ink);
  background: #d9e8f0;
  -webkit-font-smoothing: antialiased;
}

.v16-auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
}

.v16-auth-brand {
  position: relative;
  overflow: hidden;
  color: #f7fcff;
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(255,255,255,.22), transparent 55%),
    radial-gradient(700px 480px at 88% 78%, rgba(26,143,128,.28), transparent 50%),
    linear-gradient(155deg, #0f4f86 0%, #1a6fb5 42%, #1a8f80 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.v16-auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.08) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.06) 0 1.5px, transparent 2.5px);
  background-size: 48px 48px, 36px 36px;
  opacity: .55;
  pointer-events: none;
}

.v16-auth-brand-glow {
  position: absolute;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.2), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.v16-auth-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
  text-align: center;
}

.v16-auth-logo {
  width: clamp(112px, 18vw, 160px);
  height: auto;
  display: block;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 18px 28px rgba(8, 36, 64, .28));
  animation: v16-auth-float 5.5s var(--auth-ease) infinite;
}

.v16-auth-product {
  margin: 0 0 .85rem;
  font-family: var(--auth-font);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(247, 252, 255, .92);
}

.v16-auth-headline {
  margin: 0 0 .85rem;
  font-family: var(--auth-font);
  font-weight: 600;
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: #fff;
}

.v16-auth-lead {
  margin: 0 auto 1.5rem;
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(247, 252, 255, .86);
}

.v16-auth-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

.v16-auth-points li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .86rem;
  font-weight: 500;
  color: rgba(247, 252, 255, .9);
}

.v16-auth-points li::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #9fe8dc;
  box-shadow: 0 0 0 4px rgba(159, 232, 220, .18);
}

.v16-auth-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(238, 246, 250, .92), rgba(232, 241, 247, .98)),
    var(--auth-soft);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.v16-auth-panel {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.v16-auth-card {
  width: min(420px, 100%);
  background: var(--auth-panel);
  border: 1px solid rgba(215, 227, 236, .95);
  border-radius: 18px;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  box-shadow:
    0 1px 2px rgba(22, 50, 74, .04),
    0 18px 40px rgba(22, 50, 74, .08);
}

.v16-auth-kicker {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--auth-heal);
}

.v16-auth-card h2 {
  margin: 0 0 .35rem;
  font-family: var(--auth-font);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--auth-ink);
}

.v16-auth-card .muted {
  margin: 0 0 1.25rem;
  color: var(--auth-muted);
  font-size: .92rem;
  line-height: 1.45;
}

.v16-auth-card .field {
  margin-bottom: 1rem;
}

.v16-auth-card .field label {
  display: block;
  margin-bottom: .35rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--auth-muted);
}

.v16-auth-card .field input,
.v16-auth-card .field select {
  width: 100%;
  min-height: 46px;
  padding: .7rem .85rem;
  border: 1px solid #b7c9d6;
  border-radius: 10px;
  background: #fbfcfd;
  color: var(--auth-ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .18s var(--auth-ease), box-shadow .18s var(--auth-ease), background .18s var(--auth-ease);
}

.v16-auth-card .field input:focus,
.v16-auth-card .field select:focus {
  outline: none;
  border-color: var(--auth-brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 111, 181, .16);
}

.v16-auth-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: .35rem;
  border: 0;
  border-radius: 10px;
  padding: .8rem 1.1rem;
  background: linear-gradient(135deg, var(--auth-brand) 0%, var(--auth-brand-d) 100%);
  color: #fff;
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 79, 134, .22);
  transition: transform .18s var(--auth-ease), box-shadow .18s var(--auth-ease), filter .18s var(--auth-ease);
}

.v16-auth-card .btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(15, 79, 134, .28);
}

.v16-auth-card .btn:active {
  transform: translateY(1px);
}

.v16-auth-card .alert {
  border-radius: 10px;
  padding: .8rem .95rem;
  margin: 0 0 1rem;
  border: 1px solid transparent;
  font-size: .9rem;
  line-height: 1.4;
}

.v16-auth-card .alert-danger {
  background: #fff1f0;
  border-color: #f3c1bc;
  color: var(--auth-danger);
}

.v16-auth-card .alert-ok {
  background: #eef8f1;
  border-color: #b9e0c6;
  color: var(--auth-ok);
}

.v16-auth-links {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem .9rem;
  font-size: .88rem;
}

.v16-auth-links a {
  color: var(--auth-brand-d);
  text-decoration: none;
  font-weight: 600;
}

.v16-auth-links a:hover {
  text-decoration: underline;
}

.v16-auth-footer {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem .55rem;
  padding-top: 1.25rem;
  font-size: .82rem;
  color: var(--auth-muted);
}

.v16-auth-version {
  font-weight: 600;
  color: var(--auth-ink);
}

.v16-auth-dev {
  color: var(--auth-brand-d);
  font-weight: 600;
  text-decoration: none;
}

.v16-auth-dev:hover {
  text-decoration: underline;
}

.v16-auth-sep {
  opacity: .55;
}

@keyframes v16-auth-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .v16-auth-logo { animation: none; }
  .v16-auth-card .btn { transition: none; }
}

@media (max-width: 960px) {
  .v16-auth-shell {
    grid-template-columns: 1fr;
  }

  .v16-auth-brand {
    min-height: auto;
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .v16-auth-logo {
    width: 96px;
    margin-bottom: .85rem;
  }

  .v16-auth-headline {
    font-size: 1.55rem;
  }

  .v16-auth-lead {
    margin-bottom: 1rem;
    font-size: .95rem;
  }

  .v16-auth-points {
    display: none;
  }

  .v16-auth-main {
    padding: 1rem 1rem 1.25rem;
  }

  .v16-auth-panel {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .v16-auth-card {
    border-radius: 14px;
    padding: 1.2rem 1rem 1.15rem;
  }

  .v16-auth-card .field input,
  .v16-auth-card .field select,
  .v16-auth-card .btn {
    font-size: 16px;
  }

  .v16-auth-footer {
    flex-direction: column;
    text-align: center;
    gap: .2rem;
  }

  .v16-auth-sep { display: none; }
}
