:root{
  --bg:#f7f8fc;
  --surface:#ffffff;
  --text:#0b1220;
  --muted:rgba(11,18,32,.66);
  --border:rgba(11,18,32,.10);
  --shadow: 0 20px 70px rgba(11,18,32,.14);
  --shadow2: 0 10px 26px rgba(11,18,32,.10);
  --primary:#2563eb;
  --primary2:#1d4ed8;
  --radius:18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

/* Base vem do shared.css (topbar/footer/background). */
body{ margin:0; }

.card{
  width:100%;
  max-width: 420px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

h2{
  margin: 0 0 6px;
  text-align:center;
  letter-spacing:-.02em;
}

.sub{
  margin: 0 0 14px;
  text-align:center;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
  font-size: 13.5px;
}

input, select{
  width:100%;
  height: 46px;
  padding: 0 12px;
  margin: 10px 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.97);
  font-size: 15px;
  font-weight: 700;
  outline:none;
}

input::placeholder{ color: rgba(11,18,32,.45); font-weight: 650; }
input:focus, select:focus{ border-color: rgba(37,99,235,.50); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }

button{
  width:100%;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  cursor:pointer;
  margin-top: 6px;
  font-size: 15px;
  box-shadow: 0 10px 20px rgba(37,99,235,.18);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
button:hover{ background: var(--primary2); transform: translateY(-1px); box-shadow: 0 14px 24px rgba(37,99,235,.22); }

.links{
  margin-top: 14px;
  text-align:center;
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap: wrap;
  align-items:center;
}

.links a{
  color: rgba(11,18,32,.78);
  font-weight: 850;
  text-decoration:none;
}
.links a:hover{ color: rgba(11,18,32,.92); }
.sep{ opacity: .55; }

/* Modals (cadastro/esqueci) */
.modal{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.32);
  backdrop-filter: blur(6px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 50;
  padding: 18px;
}

.modal-content{
  width: min(680px, 100%);
  max-height: 90vh;
  overflow:auto;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;
  position:relative;
  color: var(--text);
}

.modal-content h3{ margin: 0 0 14px; letter-spacing:-.02em; }
.modal-content label{ font-weight: 850; font-size: 12.5px; color: rgba(11,18,32,.72); display:block; margin-top: 8px; }
.modal-content input, .modal-content select{ margin: 6px 0 10px; background: rgba(255,255,255,.98); }

.checkbox-container{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin: 10px 0;
  color: rgba(11,18,32,.72);
  font-weight: 700;
}
.checkbox-container input{ width: 16px; height: 16px; margin: 3px 0 0; }
.checkbox-container a{ color: var(--primary); text-decoration:none; }
.checkbox-container a:hover{ text-decoration: underline; }

.close-btn{
  position:absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  color: rgba(11,18,32,.72);
  cursor:pointer;
  font-size: 22px;
  line-height: 1;
}
.close-btn:hover{ background: rgba(37,99,235,.08); color: rgba(11,18,32,.9); }

hr{ border:none; border-top: 1px solid var(--border); margin: 14px 0; }

/* Layout da página de login */
.td-auth-wrap{
  display:grid;
  place-items:center;
  min-height: calc(100vh - 68px - 90px);
  padding: 18px 0;
}

.td-auth-card{ padding-top: 18px; }

.td-auth-logo{
  display:flex;
  justify-content:center;
  margin: 4px 0 14px;
}

.td-auth-logo-img{
  height: 84px;
  width: auto;
  display:block;
  object-fit: contain;
}

@media (max-width: 768px){
  .td-auth-logo-img{ height: 72px; }
}
