:root {
  --fundo: #0b1020; --texto: #e8ecf6; --suave: #aab3cc; --azul: #6b8cff;
  --verde: #3ec9a7; --vermelho: #ff6b6b; --rosa: #e58ad8;
  --vidro: #ffffff0d; --borda: #ffffff1f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 1rem;
  background:
    radial-gradient(ellipse at 20% 0%, #2a3a8c55, transparent 55%),
    radial-gradient(ellipse at 90% 100%, #00439c44, transparent 50%),
    linear-gradient(160deg, #0d1430, var(--fundo) 60%);
  color: var(--texto); font: 16px/1.6 system-ui, sans-serif;
}
main { max-width: 36rem; width: 100%; }
h1 { font-size: clamp(2rem, 7vw, 3rem); margin: .1em 0; letter-spacing: -.02em; line-height: 1.1; }
.sub { color: var(--azul); font-weight: 600; margin-top: .3rem; }
p, li { color: var(--suave); }
b { color: var(--texto); }
code { background: #ffffff14; padding: .1em .4em; border-radius: 4px; color: var(--texto); }
ul { padding-left: 1.2rem; }
.botoes { display: flex; gap: .7rem; margin: 0; }
.botoes svg { display: block; width: 1.5rem; height: 1.5rem; }
.botoes span:nth-child(1) { color: var(--verde); }
.botoes span:nth-child(2) { color: var(--vermelho); }
.botoes span:nth-child(3) { color: var(--azul); }
.botoes span:nth-child(4) { color: var(--rosa); }
.rodape { margin-top: 2rem; font-size: .85rem; }

/* Cartão de login */
.cartao {
  max-width: 26rem; padding: 2rem 1.75rem;
  background: var(--vidro); border: 1px solid var(--borda); border-radius: 18px;
  backdrop-filter: blur(12px); box-shadow: 0 30px 80px -20px #0008;
}
.cartao h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); margin-top: .6rem; }
.cartao .rodape { margin: 1.5rem 0 0; text-align: center; }

form { display: grid; gap: 1rem; margin-top: 1.5rem; }
label { display: grid; gap: .35rem; color: var(--suave); font-size: .9rem; font-weight: 500; }
input {
  width: 100%; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--borda);
  background: #0006; color: var(--texto); font: inherit; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px #6b8cff40; }
button, .botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.2rem; border: 0; border-radius: 10px;
  background: linear-gradient(180deg, #7d9aff, #4f6fe8); color: #fff;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px -8px #4f6fe8; transition: transform .1s, filter .15s;
}
button:hover, .botao:hover { filter: brightness(1.1); }
button:active, .botao:active { transform: translateY(1px); }
button:disabled { opacity: .7; cursor: progress; }
button .x {
  display: inline-grid; place-items: center; width: 1.4em; height: 1.4em;
  border-radius: 50%; background: #fff2; font-size: .85em;
}
.erro {
  margin: 0; padding: .6rem .8rem; border-radius: 8px;
  background: #ff6b6b1f; border: 1px solid #ff6b6b55; color: #ffb3b3; font-size: .9rem;
}

/* Perfil salvo (estilo seleção de usuário do PS4) */
.perfil {
  display: flex; align-items: center; gap: .9rem; margin-top: 1.5rem;
  padding: .8rem; border-radius: 12px; background: #6b8cff1a; border: 1px solid #6b8cff55;
}
.perfil > div { flex: 1; min-width: 0; display: grid; }
.perfil b { overflow: hidden; text-overflow: ellipsis; }
.perfil small { color: var(--suave); }
.perfil .botao { padding: .55rem .9rem; }
.avatar {
  flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--azul), var(--rosa)); font-weight: 700; color: #fff;
}

/* Campo de senha com o olhinho */
form > label[for] { margin-bottom: -.65rem; }
.campo-senha { position: relative; }
.campo-senha input { padding-right: 3rem; }
.olho {
  position: absolute; top: 50%; right: .35rem; transform: translateY(-50%);
  width: 2.4rem; height: 2.4rem; padding: 0; border-radius: 8px;
  background: transparent; box-shadow: none; color: var(--suave);
}
.olho:hover { color: var(--texto); background: #ffffff14; filter: none; }
.olho:active { transform: translateY(-50%); }
.olho:focus-visible { outline: 2px solid var(--azul); outline-offset: 1px; }
