body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  min-height: 100vh;
  min-height: 100dvh;
}

.login-wrap {
  width: 100%;
  max-width: 420px;
  animation: fadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.login-brand {
  text-align: center;
  margin-bottom: 36px;
}

.login-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.login-brand h1 {
  font-size: 24px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.login-brand p {
  color: var(--text-secondary);
  font-size: 14px;
}

.login-card {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-glow);
}

.login-card h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.field input {
  margin-bottom: 0;
}

.login-card .btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  font-size: 14px;
}

.erro {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--danger-muted);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.erro.visible { display: block; animation: fadeUp 0.2s ease; }

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-tertiary);
}

@media (max-width: 480px) {
  .login-brand {
    margin-bottom: 28px;
  }

  .login-brand h1 {
    font-size: 20px;
  }

  .login-card {
    padding: 22px 18px;
  }

  .login-mark {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }
}
