/* ================================
   Login moderno 2025 — clean app
================================ */

:root{
  --bg:#f4f6f8;
  --card:#ffffff;

  --text:#111827;
  --muted:#6b7280;

  --line:#e1e4e8;

  --accent:#d63638;
  --accent-soft:rgba(214,54,56,.15);

  --radius:20px;
  --radius-in:14px;

  --shadow:0 20px 50px rgba(0,0,0,.12);

  --font:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  display:grid;
  place-items:center;
  padding:18px;
}

/* CARD */

.login-box{
  width:min(420px,100%);
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:34px 26px 28px;
}

.login-box h2{
  text-align:center;
  font-size:24px;
  font-weight:800;
  margin:0 0 22px;
}

/* ERRO */

.msg-erro{
  background:#fdecec;
  color:#9b1c1c;
  padding:10px 12px;
  border-radius:12px;
  margin:0 0 18px;
  font-weight:600;
  text-align:center;
}

/* LABEL */

label{
  display:block;
  font-size:13px;
  font-weight:600;
  color:var(--muted);
  margin:14px 2px 6px;
}

/* INPUT */

input[type="text"],
input[type="password"]{
  width:100%;
  height:50px;
  padding:0 14px;
  border-radius:var(--radius-in);
  border:1px solid var(--line);
  font-size:16px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}

input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
}

/* PASSWORD (olho dentro do input, sem fundo/borda, centralizado) */

.field--pw{
  position:relative;
}

.field--pw input{
  padding-right:52px;
}

.pw-toggle{
  position:absolute;
  right:12px;
  top:65%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border:none;
  background:transparent;
  border-radius:10px;
  display:grid;
  place-items:center;
  cursor:pointer;
  padding:0;
}

.pw-toggle svg{
  width:18px;
  height:18px;
  display:block;
}

.pw-toggle:hover{
  background:rgba(0,0,0,.06);
}

.pw-toggle:active{
  background:rgba(0,0,0,.10);
}

.pw-toggle:focus{
  outline:none;
}

.pw-toggle:focus-visible{
  box-shadow:0 0 0 3px rgba(0,0,0,.08);
}

.pw-toggle .eye-off{
  display:none;
}

.pw-toggle[aria-pressed="true"] .eye{
  display:none;
}

.pw-toggle[aria-pressed="true"] .eye-off{
  display:block;
}

/* CHECK */

.checkbox{
  display:flex;
  align-items:center;
  gap:10px;
  margin:16px 0 18px;
}

.checkbox input{
  width:18px;
  height:18px;
  accent-color:var(--accent);
}

.checkbox label{
  margin:0;
  font-size:14px;
  color:var(--text);
}

/* BOTÃO */

.btn{
  width:100%;
  height:52px;
  border:none;
  border-radius:16px;
  background:var(--accent);
  color:#fff;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  transition:.15s ease;
}

.btn:hover{
  background:#c12f31;
}

@media(max-width:480px){
  input[type="text"],
  input[type="password"]{
    height:54px;
  }
  .btn{
    height:56px;
  }
}
