/* reset e variaveis */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #0b219e;
  --brand-light: #3d5bd9;
  --brand-lighter: #6b84e8;
  --brand-dark: #071580;
  --brand-xdark: #040d52;
  --accent: #f59e0b;
  --bg: #f0f2fa;
  --white: #ffffff;
  --text: #0d1333;
  --muted: #5c6480;
  --input-border: #d0d5ef;
  --shadow: 0 20px 60px rgba(11,33,158,0.13);
}

html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* layout */
.login-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* painel esquerdo */
.login-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 64px;
  background: var(--white);
}

/* cores da "marca" */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.brand-icon {
  width: 28px;
  height: 28px;
  background: var(--brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
}

/* conteudo do login */
.login-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 400px;
}

.login-content h1 {
  font-family: 'Sora', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
}

.subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 36px;
}

/* formulario */
.form-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #f7f8fd;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11,33,158,0.1);
  background: var(--white);
}

.login-input::placeholder { color: #b0b5cc; }

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted);
}

.login-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.login-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}

.login-options span {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

.login-btn {
  margin-top: 6px;
  width: 180px;
  padding: 14px 0;
  background: var(--brand);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(11,33,158,0.35);
}

.login-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(11,33,158,0.45);
}

.login-btn:active { transform: translateY(0); }

.login-links {
  margin-top: 12px!;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.login-links a {
  color: var(--muted)!important;
  text-decoration: none;
  font-weight: 600;
}

.login-links a:hover {
  text-decoration: underline;
}

.login-links span {
  color: var(--muted);
}

#resultado {
  font-size: 0.875rem;
  min-height: 20px;
  color: var(--brand);
}

.login-footer {
  font-size: 0.78rem;
  color: #b0b5cc;
  max-width: 340px;
  line-height: 1.6;
}

/* painel direito */
.login-right {
  background: linear-gradient(145deg, #3d5bd9 0%, #0b219e 45%, #071580 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* nuvens */
.cloud {
  position: absolute;
  background: rgba(255,255,255,0.18);
  border-radius: 50px;
  filter: blur(2px);
}

.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud-1 { width: 120px; height: 40px; top: 8%; right: 15%; }
.cloud-1::before { width: 60px; height: 60px; top: -30px; left: 20px; }
.cloud-1::after  { width: 44px; height: 44px; top: -20px; left: 60px; }

.cloud-2 { width: 90px; height: 30px; top: 18%; left: 8%; }
.cloud-2::before { width: 44px; height: 44px; top: -24px; left: 14px; }
.cloud-2::after  { width: 34px; height: 34px; top: -14px; left: 46px; }

.cloud-3 { width: 100px; height: 34px; bottom: 12%; left: 10%; }
.cloud-3::before { width: 50px; height: 50px; top: -28px; left: 16px; }
.cloud-3::after  { width: 38px; height: 38px; top: -18px; left: 52px; }

.cloud-4 { width: 80px; height: 26px; bottom: 22%; right: 8%; }
.cloud-4::before { width: 38px; height: 38px; top: -20px; left: 12px; }
.cloud-4::after  { width: 28px; height: 28px; top: -12px; left: 42px; }

/* telemovel */
.phone {
  width: 170px;
  height: 280px;
  background: linear-gradient(170deg, #0d1b6e 0%, #040d52 100%);
  border-radius: 28px;
  border: 5px solid rgba(255,255,255,0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.12);
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.phone-camera {
  width: 10px;
  height: 10px;
  background: #1e2a6e;
  border-radius: 50%;
  position: absolute;
  top: 14px;
}

.fingerprint-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2.5px solid rgba(109,132,232,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-ring 2.5s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { border-color: rgba(109,132,232,0.4); box-shadow: 0 0 0 0 rgba(109,132,232,0.2); }
  50%       { border-color: rgba(109,132,232,0.9); box-shadow: 0 0 0 10px rgba(109,132,232,0); }
}

.fingerprint-icon {
  font-size: 44px;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(109,132,232,0.8));
  animation: glow 2.5s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

.scan-bar {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-lighter), transparent);
  border-radius: 2px;
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}

.scan-bar::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 100%;
  background: white;
  border-radius: 2px;
  animation: scan 1.8s ease-in-out infinite;
}

@keyframes scan {
  0%   { left: -40px; }
  100% { left: 80px; }
}

.phone-hint {
  color: rgba(255,255,255,0.45);
  font-size: 0.62rem;
  text-align: center;
  margin-top: 12px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.02em;
}

/* Check bubble */
.check-bubble {
  position: absolute;
  top: 22%;
  left: 12%;
  width: 64px;
  height: 64px;
  background: white;
  border-radius: 50% 50% 50% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brand);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  z-index: 3;
  animation: pop 0.6s cubic-bezier(0.175,0.885,0.32,1.275) both 0.3s;
}

@keyframes pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* cadeado */
.lock-icon {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  height: 80px;
  z-index: 3;
}

.lock-body {
  width: 52px;
  height: 44px;
  background: white;
  border-radius: 10px;
  margin: 0 auto;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-body::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--brand);
}

.lock-shackle {
  width: 26px;
  height: 22px;
  border: 5px solid white;
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  margin: 0 auto;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.2);
}

/* pessoa icon  */
.person {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-80%);
  z-index: 4;
}

.person-head {
  width: 32px;
  height: 32px;
  background: #f59e0b;
  border-radius: 50%;
  margin: 0 auto;
}

.person-body {
  width: 52px;
  height: 54px;
  background: linear-gradient(160deg, #f59e0b, #d97706);
  border-radius: 14px 14px 0 0;
  margin: 2px auto 0;
  position: relative;
}

.person-arm {
  position: absolute;
  width: 46px;
  height: 10px;
  background: #f59e0b;
  border-radius: 6px;
  top: 14px;
  right: -36px;
  transform: rotate(-20deg);
}

.person-arm::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 10px;
  background: #f59e0b;
  border-radius: 4px;
  right: -10px;
  top: 2px;
  transform: rotate(10deg);
}

.person-leg-l, .person-leg-r {
  position: absolute;
  width: 18px;
  height: 46px;
  background: #f3f4f6;
  border-radius: 10px;
  bottom: -40px;
}

.person-leg-l { left: 6px;  transform: rotate(10deg); }
.person-leg-r { right: 6px; transform: rotate(-20deg); }

.visual-label {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Sora', sans-serif;
  white-space: nowrap;
}

/* responsividade */
@media (max-width: 900px) {
  .login-wrapper { grid-template-columns: 1fr; }
  .login-right   { display: none; }
  .login-left    { padding: 40px 32px; }
  .login-content h1 { font-size: 2.2rem; }
}