/* acesso.css — telas de boas-vindas e login (visual "vidro iOS" do layout aprovado).
   Tradução local dos utilitários/CDNs do protótipo: sem dependências externas (offline). */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body.acesso {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #fff; background: #0c181d; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Fundo: foto do hospital + véu ---------- */
.bg-photo { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.06); filter: blur(4px) brightness(.92);
}
.bg-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 47, 43, .52) 0%, rgba(15, 23, 42, .45) 45%, rgba(2, 6, 23, .82) 100%);
}

/* ---------- Utilidades ---------- */
.hidden { display: none !important; }
.alert { border-radius: 14px; padding: .7rem .9rem; font-size: .85rem; margin-bottom: 1rem; text-align: left; }
.alert-erro { background: rgba(190, 40, 40, .28); border: 1px solid rgba(255, 150, 150, .5); color: #ffe1e1; }
.alert-ok { background: rgba(16, 140, 110, .30); border: 1px solid rgba(110, 240, 200, .45); color: #d9fff2; }

/* ---------- Moldura das telas ---------- */
.screen {
  position: relative; z-index: 1; width: 100%; max-width: 430px; margin: 0 auto;
  flex: 1; display: flex; flex-direction: column; padding: 1rem 1.25rem 1.25rem;
}
.screen-login { max-width: 448px; justify-content: center; }

/* ---------- Cartão de vidro ---------- */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .08) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 34px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 1px 1px rgba(255, 255, 255, .35);
  padding: 1.5rem; position: relative; overflow: hidden;
}
.glass::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 7rem; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
}
.glass > * { position: relative; z-index: 1; }

/* ---------- Barra da logomarca horizontal ---------- */
.logo-bar {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 16px;
  padding: .65rem .8rem; margin-bottom: 1.25rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.logo-bar img { display: block; width: 100%; height: 46px; object-fit: contain; }

/* ---------- Boas-vindas ---------- */
.top-pill-wrap { display: flex; justify-content: center; padding-top: .5rem; margin-bottom: auto; }
.top-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 999px; padding: .45rem 1rem;
  font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}
.top-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; flex: 0 0 auto; }
.welcome-card { margin-top: 1rem; }
.welcome-title {
  font-size: 27px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; margin: .25rem 0 .5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.welcome-desc { font-size: 13.5px; line-height: 1.6; color: rgba(226, 246, 240, .92); margin: 0 0 1.25rem; }
.welcome-desc strong { color: #fff; font-weight: 600; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: 1.5rem; }
.feat {
  display: flex; align-items: center; gap: .65rem;
  background: rgba(0, 0, 0, .20); border: 1px solid rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 16px; padding: .65rem;
}
.feat-ico {
  width: 28px; height: 28px; flex: 0 0 auto; border-radius: 10px;
  background: rgba(20, 184, 166, .25); color: #5eead4;
  display: flex; align-items: center; justify-content: center;
}
.feat-text { line-height: 1.25; min-width: 0; }
.feat-text strong { display: block; font-size: 11.5px; font-weight: 600; color: #fff; }
.feat-text small { display: block; font-size: 10px; color: rgba(255, 255, 255, .60); }
.card-foot {
  margin-top: 1rem; padding-top: .8rem; border-top: 1px solid rgba(255, 255, 255, .10);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: rgba(203, 225, 220, .75);
}
.card-foot .status { display: inline-flex; align-items: center; gap: .35rem; }
.card-foot .status .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }

/* ---------- Botão principal ---------- */
.btn-cta {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: .9rem 1.5rem; border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px; cursor: pointer; text-decoration: none;
  background: linear-gradient(90deg, #0a6b63, #0d9488 55%, #059669);
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .01em;
  box-shadow: 0 10px 25px -5px rgba(10, 107, 99, .5), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .15s ease, filter .15s ease;
}
.btn-cta:hover { filter: brightness(1.08); }
.btn-cta:active { transform: scale(.98); }

/* ---------- Login ---------- */
.login-title { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.login-sub {
  text-align: center; font-size: 13px; color: rgba(204, 251, 241, .85); margin: .35rem 0 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.login-sub svg { color: #5eead4; flex: 0 0 auto; }

/* Controle segmentado (abas) */
.seg {
  display: flex; align-items: center; position: relative;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 16px; padding: 4px; margin-bottom: 1.5rem;
}
.seg button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .55rem .25rem; border: 0; background: transparent; cursor: pointer;
  border-radius: 12px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .70);
  transition: all .25s ease; min-height: 40px;
}
.seg button.active {
  background: rgba(255, 255, 255, .92); color: #0d6d67; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .16), 0 1px 2px rgba(0, 0, 0, .08);
}

/* Campos */
.field { margin-bottom: 1rem; text-align: left; }
.field label { display: block; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .90); letter-spacing: .02em; margin: 0 0 .4rem .25rem; }
.field .label-row { display: flex; align-items: center; justify-content: space-between; margin-right: .25rem; }
.field .label-row label { margin-bottom: .4rem; }
.field .hint { font-size: 10px; color: rgba(153, 246, 228, .70); font-weight: 500; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .lead-ico { position: absolute; left: 1rem; color: rgba(255, 255, 255, .60); pointer-events: none; display: flex; }
.input-wrap input {
  width: 100%; border-radius: 16px; padding: .9rem 2.75rem .9rem 2.75rem;
  font-size: 16px; color: #fff; outline: none;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: all .25s ease;
}
.input-wrap input.no-trail { padding-right: 1rem; }
.input-wrap input::placeholder { color: rgba(255, 255, 255, .40); }
.input-wrap input:focus {
  background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .65);
  box-shadow: 0 0 0 4px rgba(29, 181, 166, .35), inset 0 1px 2px rgba(255, 255, 255, .3);
}
.eye-btn {
  position: absolute; right: .8rem; background: none; border: 0; cursor: pointer;
  color: rgba(255, 255, 255, .60); padding: .25rem; display: flex;
}
.eye-btn:hover { color: #fff; }

/* Lembrar meus dados */
.remember-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; padding: .25rem .25rem 0; margin-bottom: .5rem; }
.remember { display: flex; align-items: center; gap: .5rem; cursor: pointer; color: rgba(255, 255, 255, .85); font-size: 11px; }
.remember input { width: 16px; height: 16px; border-radius: 4px; accent-color: #14b8a6; cursor: pointer; }

.login-help { margin-top: 1.25rem; text-align: center; font-size: 11px; color: rgba(255, 255, 255, .70); letter-spacing: .02em; }
.login-help svg { color: rgba(94, 234, 212, .8); vertical-align: -2px; margin-right: .25rem; }

/* Pílula de suporte e rodapé */
.support-wrap { text-align: center; margin-top: 1rem; }
.support-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .78); text-decoration: none;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .15);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: .5rem 1rem; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.support-pill svg { color: #5eead4; }
.support-pill strong { color: #fff; }
.acesso-foot { position: relative; z-index: 1; text-align: center; padding: 0 1rem 1.5rem; }
.acesso-foot p { font-size: 11px; letter-spacing: .03em; color: rgba(255, 255, 255, .50); margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 380px) {
  .glass { padding: 1.25rem; border-radius: 28px; }
  .welcome-title { font-size: 24px; }
  .logo-bar img { height: 40px; }
}
