/* muse_pedra/assets/acesso.css — telas da pasta logon/ (includes/acesso_topo.php)
   Cada tela tem a sua cor no painel e no botão: body.tela-login | .tela-cadastro | .tela-recuperar */

:root {
  --fundo: #15181b;
  --texto: #24282c;
  --texto-2: #5d636a;
  --linha: #cfd3d8;
  --erro: #b42318;
  --raio: 8px;
}

/* Login: basalto e ametista */
.tela-login {
  --painel-a: #2c3136; --painel-b: #141719;
  --destaque: #c9a8f0;
  --botao: #6a3d9a; --botao-escuro: #55307d; --botao-claro: #efe7f8;
  --g0: #241040; --g1: #46207a; --g2: #6c3cae; --g3: #9a6ad6; --g4: #dcc3fa; --mesa: #8357c4; --aura: #b38ae8;
  --rocha: #4d4556; --rocha-2: #e9e0f3;
}
/* Cadastro: cornalina (pedra: citrino) */
.tela-cadastro {
  --painel-a: #8f3c12; --painel-b: #461a05;
  --destaque: #ffd59a;
  --botao: #b04d17; --botao-escuro: #8f3c10; --botao-claro: #fdf0e4;
  --g0: #4f2a04; --g1: #94520a; --g2: #d08414; --g3: #f2b24a; --g4: #ffe7a8; --mesa: #e39a26; --aura: #f2b24a;
}
/* Recuperar / nova senha: malaquita (pedra: esmeralda) */
.tela-recuperar {
  --painel-a: #0f5b4b; --painel-b: #05292a;
  --destaque: #9ff0d2;
  --botao: #0f7a65; --botao-escuro: #0b5f4f; --botao-claro: #e5f6f1;
  --g0: #03251a; --g1: #0a553b; --g2: #128456; --g3: #2fbf85; --g4: #b0f5d6; --mesa: #1aa06e; --aura: #3fcf93;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--fundo); }
body {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 60% 50% at 12% 0%, color-mix(in srgb, var(--aura) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 45% at 92% 100%, color-mix(in srgb, var(--aura) 10%, transparent), transparent 70%),
    radial-gradient(ellipse at 20% 0%, #23272c 0%, var(--fundo) 60%) fixed;
  color: var(--texto);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 17px; line-height: 1.5;
}
a { color: var(--botao); }

/* Faixa do topo */
.faixa {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px;
  padding: 9px 24px;
  background: #0c0e10; border-bottom: 1px solid #2c3136;
  color: #c3c8cd; font-size: .92rem;
}
.faixa .bi { color: var(--destaque); margin-right: 4px; }
.faixa a { color: #fff; font-weight: 600; text-decoration: none; }

/* Cartão */
.area { flex: 1; display: grid; place-items: center; padding: 32px 16px; }
.cartao {
  width: 100%; max-width: 1040px; min-height: 600px;
  display: grid; grid-template-columns: 5fr 6fr;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .6), 0 0 120px -40px var(--aura);
}

/* Painel da pedra */
.painel {
  position: relative; overflow: hidden;
  padding: 40px 38px;
  background: linear-gradient(160deg, var(--painel-a), var(--painel-b));
  color: #fff;
}
.painel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, .09), transparent 45%),
    repeating-linear-gradient(60deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(-60deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 34px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.painel::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .14), transparent); }
.pedra-painel {
  position: absolute; right: -90px; bottom: -90px;
  width: 400px; height: 400px; overflow: visible;
  transform: rotate(-10deg);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
}
/* Facetas da pedra (mesmas classes de includes/gemas.php) */
.pedra-painel polygon { stroke: rgba(255, 255, 255, .2); stroke-width: .9; stroke-linejoin: round; }
.pedra-painel .g0 { fill: var(--g0); } .pedra-painel .g1 { fill: var(--g1); } .pedra-painel .g2 { fill: var(--g2); }
.pedra-painel .g3 { fill: var(--g3); } .pedra-painel .g4 { fill: var(--g4); }
.pedra-painel .mesa { fill: var(--mesa); stroke: rgba(255, 255, 255, .45); }
.pedra-painel .reflexo { fill: #fff; opacity: .16; stroke: none; }
.pedra-painel .aura { fill: var(--aura); opacity: .2; filter: blur(30px); }
.pedra-painel .rocha { fill: var(--rocha); stroke: rgba(0, 0, 0, .35); stroke-width: 1.5; }
.pedra-painel .veio { fill: none; stroke: var(--rocha-2); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; opacity: .9; }
.pedra-painel .rocha-2 { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 3; stroke-linecap: round; }
.pedra-painel .aresta { stroke: rgba(255, 255, 255, .4); stroke-width: 1.3; }
.pedra-painel .brilho { fill: #fff; opacity: 0; animation: cintila 3.6s ease-in-out infinite; }
@keyframes cintila { 0%, 70%, 100% { opacity: 0; transform: scale(.2); } 80% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pedra-painel .brilho { animation: none; } }
.painel-conteudo { position: relative; max-width: 340px; }

.marca { display: flex; align-items: center; gap: 14px; }
.marca img { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.orgao { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.nome-museu .patrono { display: block; margin-top: 4px; font-size: .74em; font-style: italic; color: var(--destaque); }
.nome-museu { margin-top: 2px; font-family: 'Playfair Display', Georgia, serif; font-size: 1.62rem; font-weight: 600; line-height: 1.15; }

.selo {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 30px; padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--destaque) 55%, transparent); border-radius: 999px;
  background: color-mix(in srgb, var(--destaque) 12%, transparent);
  color: var(--destaque); font-weight: 700; font-size: .92rem; letter-spacing: .03em;
}
.painel-texto { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 1.12rem; color: rgba(255, 255, 255, .86); }

.etapas { list-style: none; counter-reset: etapa; margin: 16px 0 0; padding: 0; }
.etapas li { counter-increment: etapa; position: relative; padding: 6px 0 6px 46px; min-height: 40px; color: #fff; font-size: 1.02rem; }
.etapas li::before {
  content: counter(etapa);
  position: absolute; left: 0; top: 3px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--destaque); color: var(--painel-b); font-weight: 800;
}

/* Lado do formulário */
.form-lado { padding: 46px 52px; display: flex; flex-direction: column; justify-content: center; }
h1 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 2.1rem; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.sub { margin: 6px 0 24px; color: var(--texto-2); font-size: 1.05rem; }

/* Título grande das telas auxiliares (cadastro / senha) */
.titulo-aux { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.titulo-aux .ico {
  flex-shrink: 0; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 14px;
  background: var(--botao); color: #fff; font-size: 1.8rem;
}
.nao-login {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 3px 10px;
  border-radius: 6px; background: var(--botao-claro); color: var(--botao-escuro);
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* Campos */
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grade .inteiro { grid-column: 1 / -1; }
.item { margin-bottom: 16px; }
.item label { display: block; margin-bottom: 5px; font-weight: 700; }
.item label .dica { font-weight: 400; color: var(--texto-2); font-size: .9rem; }
.campo { position: relative; }
.campo > .bi { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #8a9097; font-size: 1.1rem; pointer-events: none; }
.campo input {
  width: 100%; height: 52px; padding: 0 14px 0 44px;
  border: 1.5px solid var(--linha); border-radius: 10px;
  background: #fbfbfc; color: var(--texto);
  transition: border-color .15s, box-shadow .15s, background .15s;
  font: inherit; font-size: 1.08rem;
}
.campo input:focus { outline: none; background: #fff; border-color: var(--botao); box-shadow: 0 0 0 4px var(--botao-claro); }
.campo:focus-within > .bi { color: var(--botao); }
.campo.senha input { padding-right: 52px; }
.olho {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; background: none; border-radius: 6px;
  color: #6b7178; font-size: 1.2rem; cursor: pointer;
}
.olho:hover { background: #f1f2f4; }
.campo-erro { display: none; margin-top: 4px; color: var(--erro); font-size: .92rem; font-weight: 600; }
form.validado .campo input:invalid { border-color: var(--erro); }
form.validado .item:has(input:invalid) .campo-erro { display: block; }

.linha-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.linha-label a { font-size: .95rem; font-weight: 600; }

/* Botões */
.botao {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 54px; margin-top: 6px;
  border: 0; border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--botao) 82%, #fff), var(--botao) 55%, var(--botao-escuro));
  box-shadow: 0 10px 24px -10px var(--botao), inset 0 1px 0 rgba(255, 255, 255, .18);
  color: #fff; transition: transform .15s, box-shadow .15s, filter .15s;
  font: inherit; font-size: 1.12rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.botao:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 28px -10px var(--botao), inset 0 1px 0 rgba(255, 255, 255, .18); }
.botao:disabled { opacity: .75; cursor: wait; }
.botao-contorno {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; border: 1.5px solid var(--linha); border-radius: 10px; transition: border-color .15s, background .15s, color .15s;
  color: var(--texto); font-weight: 700; text-decoration: none;
}
.botao-contorno:hover { border-color: var(--botao); background: var(--botao-claro); color: var(--botao-escuro); }
.giro { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: giro .7s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }

.separador { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; color: var(--texto-2); font-size: .95rem; }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: #e2e4e7; }
.rodape-form { margin-top: 22px; text-align: center; color: var(--texto-2); }
.rodape-form a { font-weight: 700; }

/* Avisos */
.alerta { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 13px 15px; border-radius: var(--raio); border: 1px solid; font-weight: 600; }
.alerta .bi { font-size: 1.2rem; line-height: 1.3; }
.alerta-erro  { background: #fef3f2; border-color: #fecdca; color: #912018; }
.alerta-ok    { background: #ecfdf3; border-color: #abefc6; color: #085d3a; }
.alerta-aviso { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.alerta-info  { background: #eff4ff; border-color: #c7d7fe; color: #1d3a8a; }

/* Estado "pronto" (pedido enviado, e-mail enviado, link vencido) */
.pronto { text-align: center; }
.pronto .grande { display: inline-grid; place-items: center; width: 86px; height: 86px; margin-bottom: 14px; border-radius: 50%; background: var(--botao-claro); color: var(--botao); font-size: 2.6rem; }
.pronto .sub { margin-bottom: 18px; }
.pronto ul { margin: 0 0 24px; padding: 16px 18px 16px 36px; text-align: left; background: #f7f7f8; border-radius: var(--raio); }
.pronto li { margin: 4px 0; }

.rodape { padding: 16px; text-align: center; color: #8a9097; font-size: .88rem; }

/* Celular e tablet: o painel vira uma faixa no topo do cartão */
@media (max-width: 900px) {
  .area { padding: 16px 12px 8px; place-items: start center; }
  .cartao { grid-template-columns: 1fr; min-height: 0; max-width: 620px; }
  .painel { padding: 22px 20px; }
  .pedra-painel { width: 220px; height: 220px; right: -50px; bottom: auto; top: -40px; opacity: .55; }
  .marca img { width: 48px; height: 48px; }
  .nome-museu { font-size: 1.25rem; }
  .selo { margin-top: 16px; }
  .tela-login .painel-texto { display: none; }
  .painel-texto { font-size: 1rem; margin-top: 12px; }
  .etapas li { font-size: .97rem; }
  .form-lado { padding: 28px 20px 30px; }
  h1 { font-size: 1.7rem; }
  .titulo-aux .ico { width: 52px; height: 52px; font-size: 1.5rem; }
  .faixa { padding: 8px 14px; font-size: .85rem; }
}
/* Cadastro no computador: cabe numa tela só, sem rolar (campos em 6 colunas, tudo mais compacto) */
@media (min-width: 901px) {
  .tela-cadastro .area { padding: 12px 16px; }
  .tela-cadastro .cartao { min-height: 0; grid-template-columns: 4fr 7fr; }
  .tela-cadastro .painel { padding: 30px 32px; }
  .tela-cadastro .selo { margin-top: 20px; }
  .tela-cadastro .painel-texto { margin-top: 16px; padding-top: 14px; }
  .tela-cadastro .pedra-painel { width: 300px; height: 300px; right: -80px; bottom: -80px; }
  .tela-cadastro .form-lado { padding: 22px 40px 24px; }
  .tela-cadastro .nao-login { margin-bottom: 6px; }
  .tela-cadastro .titulo-aux .ico { width: 44px; height: 44px; border-radius: 12px; font-size: 1.35rem; }
  .tela-cadastro h1 { font-size: 1.75rem; }
  .tela-cadastro .sub { margin: 2px 0 12px; font-size: 1rem; }
  .tela-cadastro .grade { grid-template-columns: repeat(6, 1fr); }
  .tela-cadastro .grade .item { grid-column: span 3; margin-bottom: 10px; }
  .tela-cadastro .grade .c4 { grid-column: span 4; }
  .tela-cadastro .grade .c2 { grid-column: span 2; }
  .tela-cadastro .item label { margin-bottom: 3px; }
  .tela-cadastro .campo input { height: 44px; font-size: 1.02rem; }
  .tela-cadastro .olho { width: 38px; height: 38px; }
  .tela-cadastro .botao { height: 48px; margin-top: 4px; }
  .tela-cadastro .rodape-form { margin-top: 10px; }
  .tela-cadastro .rodape { display: none; }
}
/* Entre celular e computador: Telefone sobe para o lado do CPF */
@media (min-width: 561px) and (max-width: 900px) { .grade { grid-auto-flow: row dense; } }

@media (max-width: 560px) {
  .grade { grid-template-columns: 1fr; }
}
