/* public_html/dev/css/pages/login.css */

:root{
  --brand: #0072CE;

  /* light */
  --bg1: #EAF2FB;
  --bg2: #DCEBFA;
  --card: rgba(255,255,255,.75);
  --stroke: rgba(20,24,30,.12);
  --text: #1E2A38;
  --muted: rgba(30,42,56,.72);
  --field: rgba(255,255,255,.85);
  --fieldStroke: rgba(30,42,56,.16);
  --shadow: 0 18px 45px rgba(0,0,0,.12);
  --danger: #DC3545;
  --success: #198754;
  --warning: #b7791f;
}

html[data-theme="dark"]{
  --bg1: #0B1622;
  --bg2: #0F2336;
  --card: rgba(22,28,36,.65);
  --stroke: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --field: rgba(255,255,255,.06);
  --fieldStroke: rgba(255,255,255,.12);
  --shadow: 0 22px 55px rgba(0,0,0,.45);
  --danger: #FF6B6B;
  --success: #6EE7B7;
  --warning: #f6c453;
}

*{ box-sizing: border-box; }
body{
  margin:0;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 15% 20%, var(--bg2), transparent 55%),
    radial-gradient(900px 520px at 85% 35%, rgba(0,114,206,.22), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  display:flex;
  flex-direction:column;
}

/* Header */
.topbar{
  height: 64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 18px;
  gap: 12px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: .2px;
}
.brand img{
  width: auto;
  max-height: 48px;
  border-radius: 0;
  background: transparent;
  padding: 0;
  border: 0;
  display:block;
}
.brand .name{
  display:flex;
  flex-direction:column;
  line-height: 1.05;
}
.brand .name span{
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1;
}

.top-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}
.link{
  color: var(--text);
  text-decoration:none;
  font-weight: 700;
  opacity: .85;
}
.link:hover{ opacity: 1; text-decoration: underline; }

.chip{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.20);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap: 8px;
  user-select:none;
}
html[data-theme="dark"] .chip{ background: rgba(0,0,0,.18); }

/* Layout */
.wrap{
  width: min(1060px, 92vw);
  margin: 18px auto 40px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 900px){
  .wrap{ grid-template-columns: 1fr; }
}

.card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
  backdrop-filter: blur(10px);
}

/* Left info */
.hero h1{
  margin: 10px 0 8px;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.6px;
}
.hero p{ display:none; }
.bullets{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-top: 14px;
}
.bullet{
  display:flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.22);
}
html[data-theme="dark"] .bullet{ background: rgba(0,0,0,.14); }
.dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(0,114,206,.15);
  flex: 0 0 auto;
}
.bullet b{ display:block; }
.bullet small{ color: var(--muted); font-weight: 600; }

.footer-note{
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.footer-note a{
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}
.footer-note a:hover{ text-decoration: underline; }

/* Right login */
.login h2{
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.3px;
}
.login .sub{
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 600;
}
label{
  display:block;
  font-weight: 800;
  margin: 12px 0 6px;
  font-size: 13px;
}
.field{
  display:flex;
  align-items:center;
  gap: 10px;
  border: 1px solid var(--fieldStroke);
  background: var(--field);
  border-radius: 14px;
  padding: 12px 12px;
}
input{
  width:100%;
  border:0;
  outline:0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}

.mini{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.20);
  padding: 8px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 900;
  color: var(--text);
  user-select:none;
  white-space: nowrap;
  display:flex;
  align-items:center;
  gap: 8px;
}
html[data-theme="dark"] .mini{ background: rgba(0,0,0,.18); }

.eyeBtn{
  padding: 8px 10px;
  min-width: 44px;
  justify-content:center;
}
.eyeBtn i{
  font-size: 16px;
  opacity: .9;
}

.row{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.btn{
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 950;
  cursor:pointer;
  color: #fff;
  background: linear-gradient(180deg, #0A7FE0, #0072CE);
  box-shadow: 0 16px 30px rgba(0,114,206,.22);
}
.btn:active{ transform: translateY(1px); }

.msg{
  margin-top: 10px;
  font-weight: 850;
  min-height: 20px;
}
.msg.error{ color: var(--danger); }
.msg.success{ color: var(--success); }
.msg.warning{ color: var(--warning); }

.caps{
  margin-top: 8px;
  font-weight: 850;
  color: var(--warning);
  display:none;
}

/* ✅ reCAPTCHA badge: visível (evita stress com políticas) */
/* Obs: o badge é mais comum do v3 (invisível). O v2 já é um widget visível. */
/* Se quiser só ajustar posição/tamanho, fazemos aqui sem esconder. */

/* Loading spinner */
.spinner{
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Aviso reCAPTCHA - REQUERIDO */
.recaptcha-notice{
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  padding: 0 4px;
}
.recaptcha-notice a{
  color: var(--muted);
  text-decoration: underline;
  font-weight: 600;
}
.recaptcha-notice a:hover{ color: var(--brand); }

/* Mobile brand text behavior */
@media (max-width: 420px){
  .brand .name{ display:none; }
}