/* =====================================================================
   Millflow Solar – tela de login
   ===================================================================== */
.login { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; min-height: 100dvh; }

/* ---------- Céu ---------- */
.ceu {
  --sol: .8;
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(180deg, #0369a1 0%, #0ea5e9 42%, #7dd3fc 74%, #fef3c7 100%);
}
.ceu[data-fase="amanhecer"]  { background: linear-gradient(180deg, #1e3a8a 0%, #6d28d9 34%, #ec4899 64%, #fdba74 100%); }
.ceu[data-fase="dia"]        { background: linear-gradient(180deg, #0369a1 0%, #0ea5e9 42%, #7dd3fc 74%, #fef3c7 100%); }
.ceu[data-fase="entardecer"] { background: linear-gradient(180deg, #312e81 0%, #9d174d 38%, #f97316 74%, #fcd34d 100%); }
.ceu[data-fase="noite"]      { background: linear-gradient(180deg, #020617 0%, #0b1430 55%, #1e1b4b 100%); }

.cena { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.arco { fill: none; stroke: rgba(255, 255, 255, .4); stroke-width: 1.6; stroke-dasharray: 2 8; stroke-linecap: round; }

.sol { transition: opacity 1.2s ease; }
.sol .raios { animation: girar 40s linear infinite; transform-origin: 0 0; }
.sol .raios line { stroke: #fde68a; stroke-width: 3.5; stroke-linecap: round; }
.ceu[data-fase="noite"] .sol { opacity: 0; }

.lua { opacity: 0; transition: opacity 1.2s ease; }
.ceu[data-fase="noite"] .lua { opacity: 1; }

.estrelas circle { fill: #fff; opacity: 0; transition: opacity 1.2s ease; }
.ceu[data-fase="noite"] .estrelas circle,
.ceu[data-fase="amanhecer"] .estrelas circle { animation: piscar 3.2s ease-in-out infinite; }
.ceu[data-fase="amanhecer"] .estrelas circle { animation-name: piscar-fraco; }

.colina.c2 { fill: rgba(15, 23, 42, .26); }
.colina.c1 { fill: rgba(15, 23, 42, .42); }
.chao { fill: rgba(2, 6, 23, .55); }

.placa { fill: url(#gPainel); stroke: rgba(148, 163, 184, .7); stroke-width: 1; }
.celula { stroke: rgba(148, 163, 184, .35); stroke-width: .8; }
.perna { stroke: rgba(15, 23, 42, .75); stroke-width: 3; }
.brilho { fill: url(#gBrilho); mix-blend-mode: screen; opacity: calc(var(--sol) * .7); animation: reluz 6s ease-in-out infinite; animation-delay: var(--d); }

/* ---------- Texto sobre o céu ---------- */
.ceu-texto { position: relative; z-index: 2; padding: 56px 56px 0; max-width: 620px; }
.selo {
  display: inline-flex; align-items: center; gap: .45rem; padding: 7px 13px; border-radius: 99px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}
.selo .ico { width: 15px; height: 15px; }
.ceu-texto h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800;
  margin: 22px 0 14px; text-shadow: 0 2px 30px rgba(2, 6, 23, .25);
}
.ceu-texto h1 em { font-style: normal; background: linear-gradient(90deg, #fef08a, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ceu-texto p { font-size: 1.05rem; line-height: 1.6; margin: 0; max-width: 450px; opacity: .93; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.chips li {
  display: inline-flex; align-items: center; gap: .45rem; padding: 8px 12px; border-radius: 12px; font-size: .85rem; font-weight: 600;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.chips .ico { width: 16px; height: 16px; }

.ceu-status {
  display: inline-flex; align-items: center; gap: .65rem; margin-top: 18px; padding: 10px 16px; border-radius: 14px;
  background: rgba(2, 6, 23, .34); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .86rem; font-weight: 500;
}
.ponto { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: pulso 2s infinite; flex: none; }
.ceu[data-fase="noite"] .ponto { background: #a5b4fc; animation-name: pulso-noite; }
.relogio { opacity: .7; font-variant-numeric: tabular-nums; padding-left: .65rem; border-left: 1px solid rgba(255, 255, 255, .25); }

/* ---------- Acesso ---------- */
.acesso { display: flex; flex-direction: column; padding: 28px 48px; background: var(--bg); }
.acesso-topo { display: flex; align-items: center; justify-content: space-between; }
.cartao { width: 100%; max-width: 420px; margin: auto; padding: 32px 0; }
.cartao > * { animation: subir .55s cubic-bezier(.2, .8, .2, 1) both; }
.cartao > *:nth-child(2) { animation-delay: .05s; }
.cartao > *:nth-child(3) { animation-delay: .1s; }
.cartao > *:nth-child(4) { animation-delay: .15s; }
.cartao > *:nth-child(5) { animation-delay: .2s; }

.saudacao { display: flex; align-items: center; gap: .45rem; margin: 0 0 10px; color: var(--brand-2); font-weight: 700; font-size: .92rem; }
.saudacao .ico { width: 18px; height: 18px; }
.cartao h2 { margin: 0 0 8px; font-size: 2.05rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.sub { margin: 0 0 28px; color: var(--text-2); font-size: 1rem; line-height: 1.55; }

.aviso-caps { display: flex; align-items: center; gap: .4rem; margin: -6px 0 12px 4px; color: var(--brand-2); font-size: .8rem; font-weight: 600; }
.aviso-caps .ico { width: 15px; height: 15px; }
.linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 26px; flex-wrap: wrap; }
.rodape { text-align: center; color: var(--muted); font-size: .8rem; margin: 0; }

/* ---------- Celular / tablet ---------- */
@media (max-width: 980px) {
  .login { grid-template-columns: 1fr; }
  .ceu { min-height: 330px; }
  .ceu-texto { padding: 26px 22px 0; }
  .ceu-texto h1 { font-size: 2.1rem; margin: 16px 0 0; }
  .ceu-texto p, .chips { display: none; }
  .ceu-status { margin-top: 14px; font-size: .78rem; padding: 8px 12px; }
  .acesso { padding: 20px 20px 24px; margin-top: -24px; border-radius: 24px 24px 0 0; position: relative; z-index: 3; box-shadow: 0 -12px 30px -18px rgba(2, 6, 23, .5); }
  .cartao { padding: 26px 0 20px; }
  .cartao h2 { font-size: 1.7rem; }
}

@keyframes piscar { 0%, 100% { opacity: .25; } 50% { opacity: .95; } }
@keyframes piscar-fraco { 0%, 100% { opacity: .05; } 50% { opacity: .35; } }
@keyframes reluz { 0%, 100% { opacity: calc(var(--sol) * .35); } 50% { opacity: calc(var(--sol) * .9); } }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }
@keyframes pulso-noite { 0% { box-shadow: 0 0 0 0 rgba(165, 180, 252, .6); } 100% { box-shadow: 0 0 0 10px rgba(165, 180, 252, 0); } }
