:root{
  --ap-bg: #0B1020;
  --ap-blue: #2563eb;
  --ap-green: #059669;
  --ap-text: #E5E7EB;
  --ap-muted: rgba(229,231,235,.72);
  --ap-border: rgba(255,255,255,.12);
}

html, body { height: 100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:#fff;
}

.auth-shell{
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-left{
  background:
    radial-gradient(1200px 700px at 20% 20%, rgba(37,99,235,.30), transparent 60%),
    radial-gradient(900px 650px at 80% 25%, rgba(5,150,105,.22), transparent 58%),
    var(--ap-bg);
  color: var(--ap-text);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 56px;
  position:relative;
  overflow:hidden;
}

.auth-left::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.28));
  pointer-events:none;
}

.brand-block{
  position:relative;
  z-index:1;
  text-align:center;
  max-width: 540px;
}

.brand-logo{
  height: 70px;
  width:auto;
  display:block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.35));
}

.brand-sub{
  font-size: 16px;
  color: rgba(229,231,235,.80);
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}

.auth-right{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 42px 30px;
  background:#fff;
}

.auth-card{
  width: 100%;
  max-width: 460px;
}

.mini-logo{
  display:none;
  justify-content:center;
  margin-bottom: 10px;
}
.mini-logo img{ height: 42px; width:auto; }

.auth-title{
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color:#111827;
  margin: 0 0 16px;
  text-align:center;
}
.auth-title span{
  color: var(--ap-blue);
  font-weight: 800;
}

.form-label{
  font-size: 13px;
  font-weight: 600;
  color:#374151;
  margin-bottom: 6px;
}

.control{
  border-radius: 12px !important;
  padding: 12px 12px !important;
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
}
.control:focus{
  border-color: rgba(37,99,235,.55) !important;
  box-shadow: 0 0 0 .22rem rgba(37,99,235,.12) !important;
}

.input-group-text{
  border-radius: 12px !important;
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
  color: #6b7280;
}

.btn-auth{
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  border: none;
  width: 100%;
  background: linear-gradient(135deg, var(--ap-blue), #1e40af);
  box-shadow: 0 12px 26px rgba(37,99,235,.18);
}
.btn-auth:hover{ filter: brightness(1.03); }

.link-soft{
  font-size: 13px;
  font-weight: 700;
  color:#111827;
  text-decoration:none;
}
.link-soft:hover{ text-decoration: underline; }

.divider{
  margin: 18px 0 10px;
  border-top: 1px solid #eef2f7;
}

.footer-note{
  text-align:center;
  margin-top: 16px;
  font-size: 12px;
  color:#6b7280;
}

.alert-auth{
  border-radius: 12px;
  border: 1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.08);
  color: #b91c1c;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

/* Fade-in top -> bottom */
.fade-down{
  animation: fadeDown .55s ease both;
}
@keyframes fadeDown{
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px){
  .auth-shell{ grid-template-columns: 1fr; }
  .auth-left{ display:none; }
  .mini-logo{ display:flex; }
}

/* Controle de logo */
.logo-mobile {
  display: none;
}

.logo-desktop {
  display: block;
}

/* MOBILE */
@media (max-width: 768px) {

  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
    max-width: 180px;
    margin: 0 auto;
  }

  .mobile-bemvindo {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
    white-space: nowrap; /* força 1 linha */
  }

}

.mini-logo img {
  max-width: 100%;
  height: auto;        /* mantém proporção real */
  object-fit: contain; /* evita distorção */
}

@media (max-width: 768px) {
  .titulo-bemvindo {
    white-space: nowrap;
    font-size: 18px; /* pode ajustar se precisar */
  }
}
