/* ============================================================
   Educatize — Login (coerente com a landing dark-teal)
   Paleta: teal #0d9488 / #0f766e · tinta #0f172a · muted #64748b
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(13,148,136,.14), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(14,165,233,.10), transparent 60%),
    linear-gradient(180deg, #ffffff, #f0fdfa);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header (igual ao da landing) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: #0f172a; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(13,148,136,.35);
}
.logo b { color: #0f766e; }
.btn-voltar {
  color: #64748b; font-weight: 600; font-size: .9rem; text-decoration: none;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid #e2e8f0; background: #fff;
  transition: all .15s;
}
.btn-voltar:hover { color: #0d9488; border-color: #0d9488; }

/* ---------- Painel central ---------- */
.login-shell {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.login-panel {
  width: 100%; max-width: 960px;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(15,23,42,.10);
  border: 1px solid #e2e8f0;
  background: #fff;
}

/* ---------- Lado institucional ---------- */
.brand-side {
  background: linear-gradient(150deg, #0d9488, #0f766e 70%, #115e59);
  color: #fff;
  padding: 48px 44px;
  display: flex; align-items: center;
}
.brand-pill {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff;
  font-weight: 700; font-size: .78rem; margin-bottom: 22px;
}
.brand-inner h1 { font-size: 2rem; font-weight: 900; line-height: 1.2; margin-bottom: 14px; letter-spacing: -.5px; }
.brand-inner h1 span { color: #99f6e4; }
.brand-text { opacity: .92; margin-bottom: 26px; font-size: .98rem; line-height: 1.6; }
.brand-list { list-style: none; display: grid; gap: 12px; }
.brand-list li { display: flex; align-items: center; gap: 10px; font-size: .92rem; opacity: .95; }
.brand-list li i { color: #a7f3d0; font-size: 1rem; }

/* ---------- Lado do formulário ---------- */
.form-side { display: flex; align-items: center; justify-content: center; padding: 48px 40px; }
.login-form { width: 100%; max-width: 360px; }
.card-title { font-size: 1.7rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.form-sub { color: #64748b; font-size: .9rem; margin-bottom: 28px; }

.input-div {
  position: relative; width: 100%;
  display: flex; align-items: center;
  margin-bottom: 1.1rem;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  transition: all .25s ease;
}
.input-div.focus { border-color: #0d9488; box-shadow: 0 0 0 4px rgba(13,148,136,.14); }
.input-div .i { color: #94a3b8; margin-right: .8rem; font-size: 1.05rem; transition: color .25s; }
.input-div.focus .i { color: #0d9488; }
.input-div > div { position: relative; width: 100%; height: 40px; }
.input-div > div > h5 {
  position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; font-size: 15px; font-weight: 500;
  transition: all .25s ease; pointer-events: none;
}
.input-div.focus > div > h5, .input-div.has-content > div > h5 {
  top: 0; font-size: 11px; color: #0d9488; font-weight: 600;
}
.input-div > div > input {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 30px;
  border: none; outline: none; background: none; padding: 0 4px;
  font-size: 15px; color: #0f172a; font-family: inherit;
}
.input-div.pass { padding-right: 2.6rem; }
#togglePassword {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  cursor: pointer; background: none; border: none; color: #64748b;
  display: flex; align-items: center; justify-content: center;
  padding: 4px; border-radius: 6px; font-size: 1rem;
}
#togglePassword:hover { background: #f1f5f9; color: #0d9488; }

.form-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: 10px; padding: 10px 14px; font-size: .85rem;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 8px;
}

.btn {
  display: block; width: 100%; height: 50px; border-radius: 12px;
  outline: none; border: none;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  font-size: 15px; font-weight: 700; color: #fff;
  font-family: inherit; margin-top: .4rem; cursor: pointer;
  box-shadow: 0 4px 14px rgba(13,148,136,.25);
  transition: all .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,148,136,.35); }
.btn:active { transform: translateY(0); }

/* ---------- Responsivo ---------- */
@media screen and (max-width: 860px) {
  .login-panel { grid-template-columns: 1fr; max-width: 480px; }
  .brand-side { padding: 34px 32px; }
  .brand-inner h1 { font-size: 1.6rem; }
  .brand-list { display: none; }
  .form-side { padding: 34px 28px; }
}
@media screen and (max-width: 640px) {
  .site-header { padding: 12px 18px; }
  .btn-voltar { font-size: .8rem; padding: 6px 12px; }
  .login-shell { padding: 24px 16px; }
}