/* ============================================================
   PetCare Hospital Veterinário — style.css
   Identidade: coral #F4845F · pêssego #FFE8D6 · teal #22577A
               amarelo #FFD166 · fundo #FFF8F0
   Fontes: Baloo 2 (títulos) + Quicksand (texto)
   ============================================================ */

:root {
  --coral: #F4845F;
  --coral-dark: #E06A44;
  --peach: #FFE8D6;
  --teal: #22577A;
  --teal-dark: #1A4460;
  --yellow: #FFD166;
  --bg: #FFF8F0;
  --white: #FFFFFF;
  --text: #33475B;

  --font-title: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Quicksand", "Trebuchet MS", sans-serif;

  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;

  --shadow-coral: 0 12px 30px -10px rgba(244, 132, 95, 0.35);
  --shadow-teal: 0 12px 30px -12px rgba(34, 87, 122, 0.30);
  --shadow-soft: 0 10px 26px -12px rgba(34, 87, 122, 0.18);

  --header-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font-title); color: var(--teal); line-height: 1.15; }

a { color: var(--coral); text-decoration: none; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1160px, 92%); margin-inline: auto; }

.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(0.98); }

.btn-lg { padding: 16px 34px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--coral); color: var(--white); box-shadow: var(--shadow-coral); }
.btn-primary:hover { background: var(--coral-dark); box-shadow: 0 16px 34px -10px rgba(244, 132, 95, 0.5); }

.btn-secondary { background: var(--teal); color: var(--white); box-shadow: var(--shadow-teal); }
.btn-secondary:hover { background: var(--teal-dark); }

.btn-yellow { background: var(--yellow); color: var(--teal); box-shadow: 0 12px 28px -10px rgba(255, 209, 102, 0.55); }
.btn-yellow:hover { background: #FFC84D; }

.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: var(--white); }

.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost-light:hover { background: var(--white); color: var(--teal); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 132, 95, 0.15);
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: var(--shadow-soft); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.brand img { width: 212px; height: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-list a {
  font-weight: 600;
  color: var(--teal);
  position: relative;
  padding: 6px 2px;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--coral);
  transition: right 0.3s ease;
}
.nav-list a:hover::after { right: 0; }

.btn-nav { padding: 10px 22px; font-size: 0.95rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}
.hamburger span {
  width: 26px; height: 3px;
  border-radius: 3px;
  background: var(--teal);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Badge 24h pulsante ---------- */
.badge-24h {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--white);
  background: var(--teal);
  padding: 8px 20px;
  border-radius: 999px;
  animation: badge-pulse 2s ease-in-out infinite;
}
.badge-24h--light { background: var(--yellow); color: var(--teal); }

.badge-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  animation: dot-blink 1.2s ease-in-out infinite;
}
.badge-24h--light .badge-dot { background: var(--coral); }

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 132, 95, 0.55); }
  50% { box-shadow: 0 0 0 12px rgba(244, 132, 95, 0); }
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + clamp(48px, 8vw, 90px)) 0 clamp(56px, 8vw, 90px);
  background: linear-gradient(160deg, var(--peach) 0%, var(--bg) 62%);
  position: relative;
  overflow: hidden;
}

/* padrão de patinhas sutil */
.paw-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23F4845F' fill-opacity='0.08'%3E%3Cellipse cx='24' cy='18' rx='4' ry='5.5'/%3E%3Cellipse cx='34' cy='15' rx='4' ry='5.5'/%3E%3Cellipse cx='44' cy='18' rx='4' ry='5.5'/%3E%3Cpath d='M34 24c7 0 12 5 12 10.5 0 4.4-3.4 7.5-7.2 7.5-1.8 0-3.3-.6-4.8-.6s-3 .6-4.8.6c-3.8 0-7.2-3.1-7.2-7.5C22 29 27 24 34 24Z'/%3E%3Cellipse cx='84' cy='78' rx='4' ry='5.5'/%3E%3Cellipse cx='94' cy='75' rx='4' ry='5.5'/%3E%3Cellipse cx='104' cy='78' rx='4' ry='5.5'/%3E%3Cpath d='M94 84c7 0 12 5 12 10.5 0 4.4-3.4 7.5-7.2 7.5-1.8 0-3.3-.6-4.8-.6s-3 .6-4.8.6c-3.8 0-7.2-3.1-7.2-7.5C82 89 87 84 94 84Z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 70px);
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.55rem);
  font-weight: 800;
  margin: 20px 0 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--coral);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 10px;
  background: var(--yellow);
  border-radius: 6px;
  z-index: -1;
  opacity: 0.7;
}

.hero-sub { font-size: 1.125rem; max-width: 54ch; margin-bottom: 30px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  list-style: none;
}
.hero-facts li {
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
}
.hero-facts strong {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--coral);
  line-height: 1.1;
}

.hero-media { position: relative; }

.hero-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-coral);
  border: 6px solid var(--white);
  transform: rotate(1.5deg);
  transition: transform 0.4s ease;
}
.hero-photo-frame:hover { transform: rotate(0deg) scale(1.01); }
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* Mascote */
.mascot {
  position: absolute;
  bottom: -26px;
  left: -30px;
  width: clamp(88px, 10vw, 120px);
  filter: drop-shadow(0 10px 18px rgba(34, 87, 122, 0.3));
  animation: mascot-bob 3.4s ease-in-out infinite;
}
.mascot svg { width: 100%; height: auto; }
.mascot-pupil { transition: transform 0.08s linear; }

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

/* ---------- Trilha de patinhas (wow) ---------- */
.paw-trail {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 3.5vw, 40px);
  padding: 34px 4%;
  overflow: hidden;
}
.paw-step {
  width: clamp(26px, 3.4vw, 38px);
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(14px) scale(0.5) rotate(var(--paw-rot, 0deg));
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--paw-delay, 0s);
}
.paw-trail.revealed .paw-step {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(var(--paw-rot, 0deg));
}
.paw-step:nth-child(even) { margin-top: 22px; }

/* ---------- Cabeçalho de seção ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--coral);
  background: var(--peach);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow--yellow { color: var(--teal); background: var(--yellow); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.section-head--light h2, .section-head--light p { color: var(--white); }

/* ---------- Split (sobre / contato) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.split-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
.split-text > p { margin-bottom: 22px; }

.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-teal);
  aspect-ratio: 3/2;
  object-fit: cover;
  width: 100%;
}

.floating-card {
  position: absolute;
  bottom: -22px;
  right: -14px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow-coral);
  display: flex;
  flex-direction: column;
  border: 3px solid var(--peach);
}
.floating-card strong { font-family: var(--font-title); font-size: 1.35rem; color: var(--coral); }
.floating-card span { font-size: 0.88rem; }

.check-list { list-style: none; margin-bottom: 28px; display: grid; gap: 12px; }
.check-list li { padding-left: 36px; position: relative; }
.check-list li::before {
  content: "🐾";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.05rem;
}

/* ---------- Serviços ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-coral);
  border-color: var(--peach);
}

.card-icon {
  width: 74px; height: 74px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: var(--coral);
  background: var(--peach);
  margin-bottom: 20px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.card:hover .card-icon {
  background: var(--coral);
  color: var(--white);
  transform: rotate(-6deg) scale(1.06);
}

.card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 0.98rem; }

/* ---------- Emergência ---------- */
.emergencia {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  width: min(1240px, 96%);
  margin-inline: auto;
  overflow: hidden;
}

.emergencia-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.emergencia h2 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; margin: 20px 0 16px; }
.emergencia h2 em { font-style: normal; color: var(--yellow); }
.emergencia p { color: rgba(255, 255, 255, 0.9); max-width: 52ch; }

.emergencia-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 18px; }
.emergencia-note { font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); }

.emergencia-media img {
  border-radius: var(--radius);
  border: 5px solid rgba(255, 255, 255, 0.18);
  aspect-ratio: 3/2;
  object-fit: cover;
  width: 100%;
}

/* ---------- Especialidades (wiggle) ---------- */
.esp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.esp-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border-bottom: 5px solid var(--peach);
  cursor: default;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.esp-card span { font-size: 2.3rem; display: block; margin-bottom: 12px; }
.esp-card h3 { font-size: 1.15rem; font-weight: 700; }

.esp-card:hover {
  border-bottom-color: var(--coral);
  box-shadow: var(--shadow-coral);
  animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-2.5deg); }
  40% { transform: rotate(2.5deg); }
  60% { transform: rotate(-1.5deg); }
  80% { transform: rotate(1.5deg); }
}

/* ---------- PetCare Sys ---------- */
.petcare-sys {
  background:
    radial-gradient(circle at 12% 20%, rgba(244, 132, 95, 0.22), transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(255, 209, 102, 0.16), transparent 40%),
    linear-gradient(150deg, var(--teal) 0%, var(--teal-dark) 100%);
}

.sys-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.sys-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 28px 22px;
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.sys-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--coral);
}

.sys-num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--teal);
  background: var(--yellow);
  border-radius: 12px;
  padding: 3px 12px;
  display: inline-block;
  margin-bottom: 14px;
}
.sys-card h3 { color: var(--white); font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.sys-card p { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }

.sys-card--cta {
  background: var(--coral);
  border-color: var(--coral);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  text-align: center;
  align-items: center;
}
.sys-card--cta:hover { background: var(--coral-dark); }
.sys-card--cta p { color: rgba(255, 255, 255, 0.95); }

/* ---------- Números ---------- */
.numeros { background: var(--peach); }

.numeros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.numero strong {
  display: block;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--coral);
  line-height: 1.05;
}
.numero > span { font-weight: 600; color: var(--teal); }

/* ---------- Depoimentos ---------- */
.depo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.depo-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.depo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-coral); }

.depo-card::before {
  content: "“";
  position: absolute;
  top: 6px;
  right: 22px;
  font-family: var(--font-title);
  font-size: 4.4rem;
  color: var(--peach);
  line-height: 1;
}

.depo-card blockquote p { font-size: 1rem; font-style: italic; }

.depo-card figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.depo-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--peach);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.depo-card figcaption strong { font-family: var(--font-title); color: var(--teal); display: block; }
.depo-card figcaption div span { font-size: 0.86rem; }

/* ---------- Contato ---------- */
.contato { background: linear-gradient(180deg, var(--bg) 0%, var(--peach) 100%); }
.contato .split { align-items: start; }

.contato-list { list-style: none; display: grid; gap: 14px; margin-bottom: 30px; }
.contato-list li { display: grid; }
.contato-list strong { font-family: var(--font-title); color: var(--teal); font-size: 0.98rem; }
.contato-list a { font-weight: 600; }

.contato-foto img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3/2;
  object-fit: cover;
  width: 100%;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-coral);
  border: 3px solid var(--peach);
}
.form-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 22px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--peach);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(244, 132, 95, 0.18);
}

.form-feedback {
  margin-top: 16px;
  font-weight: 600;
  color: var(--teal);
  text-align: center;
  min-height: 1.4em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.form-feedback.show { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
.footer { background: var(--teal-dark); color: rgba(255, 255, 255, 0.85); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(30px, 5vw, 56px);
  padding: clamp(52px, 7vw, 80px) 0 44px;
}

.footer-brand img {
  width: 200px;
  background: var(--bg);
  border-radius: 16px;
  padding: 10px 14px;
  margin-bottom: 18px;
}
.footer-brand p { font-size: 0.95rem; margin-bottom: 20px; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, transform 0.3s ease;
}
.footer-social a:hover { background: var(--coral); transform: translateY(-3px); }

.footer-col h3 {
  color: var(--yellow);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.85); font-weight: 500; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--yellow); }
.footer-contato li { font-size: 0.95rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   LOGIN — Portal do Tutor
   ============================================================ */
.login-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--bg);
}

.login-side {
  position: relative;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 209, 102, 0.35), transparent 45%),
    linear-gradient(160deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 60px);
  overflow: hidden;
}
.login-side .paw-pattern { opacity: 1; filter: brightness(4); }

.login-side-brand { position: relative; z-index: 1; }
.login-side-brand img {
  width: 216px;
  background: var(--bg);
  border-radius: 18px;
  padding: 12px 16px;
}

.login-side-text { position: relative; z-index: 1; }
.login-side-text h1 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; margin-bottom: 14px; }
.login-side-text p { max-width: 44ch; color: rgba(255, 255, 255, 0.92); margin-bottom: 26px; }

.login-perks { list-style: none; display: grid; gap: 12px; position: relative; z-index: 1; }
.login-perks li {
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.98rem;
  backdrop-filter: blur(3px);
}

.login-side-foot { position: relative; z-index: 1; font-size: 0.88rem; color: rgba(255, 255, 255, 0.8); }

.login-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 60px) 6%;
  position: relative;
}

.login-back {
  position: absolute;
  top: 26px;
  right: 6%;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.login-back:hover { color: var(--coral); }

.login-card {
  width: min(460px, 100%);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 3px solid var(--peach);
  box-shadow: var(--shadow-coral);
  padding: clamp(28px, 4vw, 44px);
}

.login-card-head { text-align: center; margin-bottom: 26px; }
.login-card-head h2 { font-size: 1.65rem; font-weight: 800; }
.login-card-head p { font-size: 0.95rem; }

/* Toggle login/registro */
.auth-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--peach);
  border-radius: 999px;
  padding: 5px;
  position: relative;
  margin-bottom: 28px;
}
.auth-toggle::before {
  content: "";
  position: absolute;
  top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 5px);
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(244, 132, 95, 0.4);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.auth-toggle.registro::before { transform: translateX(100%); }

.auth-toggle button {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal);
  padding: 11px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.auth-toggle button[aria-selected="true"] { color: var(--coral); }

.auth-form { display: none; }
.auth-form.active { display: block; animation: form-in 0.4s ease; }

@keyframes form-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  margin: -6px 0 18px;
}
.auth-extra label { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; cursor: pointer; }
.auth-extra input[type="checkbox"] { accent-color: var(--coral); width: 16px; height: 16px; }

.login-note { text-align: center; font-size: 0.85rem; margin-top: 20px; color: #7A8CA0; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .esp-grid { grid-template-columns: repeat(3, 1fr); }
  .sys-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }

  .brand img { width: 176px; }

  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 6% 28px;
    border-bottom: 1px solid rgba(244, 132, 95, 0.2);
    box-shadow: var(--shadow-soft);
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; margin-bottom: 16px; }
  .nav-list a { display: block; padding: 13px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--peach); }

  .hero-grid, .split, .emergencia-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .mascot { left: auto; right: -8px; bottom: -20px; }

  .contato .split-text:first-child { order: 1; }

  .numeros-grid { grid-template-columns: repeat(2, 1fr); }
  .depo-grid { grid-template-columns: 1fr; }

  .login-body { grid-template-columns: 1fr; }
  .login-side { min-height: 300px; gap: 22px; }
  .login-perks { display: none; }
  .login-back { position: static; margin-bottom: 20px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .cards-grid, .esp-grid { grid-template-columns: 1fr; }
  .esp-grid { grid-template-columns: repeat(2, 1fr); }
  .sys-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .emergencia-ctas .btn { width: 100%; }
  .floating-card { right: 8px; bottom: -18px; padding: 12px 18px; }
  .paw-step:nth-child(n+9) { display: none; }
}

/* ---------- Acessibilidade: movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .paw-step { opacity: 1; transform: none; }
}
