/* UltraBarbearia — telas de entrada sobre foto (login).
   Paleta sóbria (Atualização F, parte 7): o login fica sobre a foto
   escura, então usa a relação do TEMA ESCURO de tema.css — texto
   #F5F5F4, ação clara com texto chumbo, estados dessaturados.
   Este arquivo não carrega tema.css: os tokens vêm repetidos aqui. */
.auth {
  --base:          #191919;
  --texto-principal: #F5F5F4;
  --acao-fundo:    #F5F5F4;
  --acao-texto:    #191919;
  --acao-hover:    #E7E5E4;
  --sucesso:       #5D9586;
  --perigo:        #CA735C;
  --alerta:        #B0893C;
  --sucesso-texto: #A9CFC4;   /* sobre o vidro escuro: clareado na mesma matiz */
  --perigo-texto:  #EBB4A5;
  --alerta-texto:  #E2C68C;

  --auth-fg:       var(--texto-principal);
  --auth-fg-soft:  rgba(245,245,244,.62);
  --auth-fg-dim:   rgba(245,245,244,.42);
  --auth-line:     rgba(245,245,244,.14);
  --auth-field:    rgba(245,245,244,.07);

  position: relative;
  min-height: 100vh;
  min-height: 100svh;          /* evita o pulo da barra do mobile */
  display: grid;
  place-items: center;
  padding: 40px 20px;
  overflow: hidden;
  color: var(--auth-fg);
  /* Miniatura embutida: pinta a tela antes da foto chegar */
  background: var(--base) center/cover no-repeat
    url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABcQERQRDhcUEhQaGBcbIjklIh8fIkYyNSk5UkhXVVFIUE5bZoNvW2F8Yk5QcptzfIeLkpSSWG2grJ+OqoOPko3/2wBDARgaGiIeIkMlJUONXlBejY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY3/wAARCAANABQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwB1hrrP8kpBx/FU154gWJCka/P6muZsBuuVBPHpS3TmS4boOccUmTYa9y7OzFjkmikB2jAx+VFIqx//2Q==");
}

/* Fotografia de fundo (elemento <img>: srcset responsivo de verdade) */
.auth-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: auth-bg-in 1.4s cubic-bezier(.22,.61,.36,1) both;
}

/* Véu: garante contraste do texto sobre qualquer trecho da foto */
.auth::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 88% at 50% 40%,
      rgba(9,13,17,.06) 0%, rgba(9,13,17,.34) 55%, rgba(6,9,12,.70) 100%),
    linear-gradient(180deg, rgba(6,9,12,.10) 0%, rgba(6,9,12,.14) 55%, rgba(6,9,12,.34) 100%);
}

@keyframes auth-bg-in {
  from { opacity: 0; transform: scale(1.045); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ── Cartão de vidro ───────────────────────────────────────── */
.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 504px;
  padding: 40px 36px 34px;
  border: 1px solid var(--auth-line);
  border-radius: 22px;
  background: rgba(25,25,25,.58);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow:
    0 30px 80px -28px rgba(0,0,0,.75),
    0 2px 8px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.10);
  animation: auth-card-in .6s cubic-bezier(.16,1,.3,1) .08s both;
}

/* Sem backdrop-filter (navegador antigo): opacidade cobre o texto */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .auth-card { background: rgba(25,25,25,.90); }
}

/* Mesmo arquivo (logo-dark.png) e mesma regra do painel: altura fixa,
   largura automática, sem width/height na tag. */
.auth-logo {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 28px;
}

.auth-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--auth-fg);
  letter-spacing: -.4px;
  text-align: center;
  margin: 0 0 6px;
}

.auth-sub {
  font-size: .8125rem;
  color: var(--auth-fg-soft);
  text-align: center;
  margin: 0 0 28px;
}

/* ── Avisos ────────────────────────────────────────────────── */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  margin: 0 0 18px;
  border: 1px solid;
  border-radius: 12px;
  font-size: .8125rem;
  line-height: 1.45;
}
.auth-alert i { line-height: 1.35; flex-shrink: 0; }
.auth-alert ul { margin: 4px 0 0; padding-left: 18px; }
/* 12% da cor no fundo, borda a 20%, texto na cor (clareada para o vidro). */
.auth-alert-erro  { background: color-mix(in srgb, var(--perigo) 12%, transparent);  border-color: color-mix(in srgb, var(--perigo) 20%, transparent);  color: var(--perigo-texto); }
.auth-alert-aviso { background: color-mix(in srgb, var(--alerta) 12%, transparent);  border-color: color-mix(in srgb, var(--alerta) 20%, transparent);  color: var(--alerta-texto); }
.auth-alert-ok    { background: color-mix(in srgb, var(--sucesso) 12%, transparent); border-color: color-mix(in srgb, var(--sucesso) 20%, transparent); color: var(--sucesso-texto); }

/* ── Campos ────────────────────────────────────────────────── */
.auth-field { margin-bottom: 16px; }

.auth-label {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--auth-fg-soft);
  margin-bottom: 8px;
}

.auth-input-wrap { position: relative; }

.auth-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-fg-dim);
  font-size: .9375rem;
  line-height: 1;
  pointer-events: none;
  transition: color .18s ease;
}
.auth-input-wrap:focus-within .auth-input-icon { color: rgba(245,245,244,.85); }

.auth-input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 46px;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--auth-fg);
  background: var(--auth-field);
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.auth-input::placeholder { color: rgba(245,245,244,.38); }
.auth-input:hover { background: rgba(255,255,255,.10); }
.auth-input:focus {
  outline: none;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.44);
  box-shadow: 0 0 0 3px rgba(255,255,255,.09);
}

/* Autopreenchimento do Chrome: mantém o vidro em vez do amarelo */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--auth-fg);
  -webkit-background-clip: text;
  caret-color: var(--auth-fg);
  transition: background-color 5000s ease-in-out 0s;
}

.auth-input-senha { padding-right: 46px; }

.auth-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  background: none;
  border: none;
  border-radius: 10px;
  color: var(--auth-fg-dim);
  font-size: .9375rem;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.auth-eye:hover { color: var(--auth-fg); background: rgba(255,255,255,.08); }
.auth-eye:focus-visible { outline: 2px solid rgba(255,255,255,.5); outline-offset: 1px; }

/* Dica discreta abaixo do campo (Caps Lock, requisitos…) */
.auth-hint {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: .75rem;
  color: var(--alerta-texto);
}
.auth-hint.is-on { display: flex; }

/* ── Botão ─────────────────────────────────────────────────── */
.auth-submit {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.1px;
  color: var(--acao-texto);
  background: var(--acao-fundo);
  border: 1px solid var(--acao-fundo);
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 30px -16px rgba(0,0,0,.9);
  transition: background-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.auth-submit:hover  { background: var(--acao-hover); border-color: var(--acao-hover); box-shadow: 0 14px 34px -16px rgba(0,0,0,.95); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 2px; }
.auth-submit i { transition: transform .18s ease; }
.auth-submit:hover i { transform: translateX(3px); }
.auth-submit[disabled] { opacity: .7; cursor: default; transform: none; box-shadow: none; }
.auth-submit[disabled]:hover i { transform: none; }

.auth-spin {
  width: 15px; height: 15px;
  border: 2px solid rgba(25,25,25,.25);
  border-top-color: var(--acao-texto);
  border-radius: 50%;
  animation: auth-spin .6s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

/* Botão secundário / link de saída */
.auth-link-sec {
  display: block;
  margin-top: 18px;
  text-align: center;
  font-size: .8125rem;
  color: var(--auth-fg-soft);
  text-decoration: none;
  transition: color .15s ease;
}
.auth-link-sec:hover { color: var(--auth-fg); }

/* Lista de requisitos (troca de senha) */
.auth-rules {
  margin: 4px 0 22px;
  padding: 13px 15px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  font-size: .75rem;
  color: var(--auth-fg-soft);
  line-height: 1.6;
}
.auth-rules strong { color: var(--auth-fg); font-weight: 600; }
.auth-rules ul { margin: 5px 0 0; padding-left: 17px; }

/* ── Rodapé ────────────────────────────────────────────────── */
.auth-foot {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  text-align: center;
  font-size: .75rem;
  color: rgba(245,245,244,.42);
}
.auth-foot { text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.auth-foot a { color: rgba(245,245,244,.62); text-decoration: none; transition: color .15s ease; }
.auth-foot a:hover { color: var(--auth-fg); }

/* ── Responsivo ────────────────────────────────────────────── */
/* Retrato: a foto é paisagem e o corte vira lateral — busca a mata da direita */
@media (max-aspect-ratio: 3/4) {
  .auth-bg { object-position: 72% center; }
}

@media (max-width: 480px) {
  .auth { padding: 24px 16px; }
  .auth-card { padding: 32px 24px 28px; border-radius: 20px; }
  .auth-logo { height: 32px; margin-bottom: 22px; }
  .auth-title { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-bg, .auth-card { animation: none; }
  .auth-submit:hover i { transform: none; }
  .auth-spin { animation-duration: 1.6s; }
}

/* Base da pagina de login (nao carrega o tema.css) */
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #191919; /* = --base; body fica fora de .auth */
}
*, *::before, *::after { box-sizing: border-box; }
